This is not working?

echo("<tr><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text;
font-family: $font; font-size:
$fontsize\">$server->server_num_players."/".$server->server_max_players</td>
</tr>");

If you are trying to print out 
<tr><td align="center" bgcolor="$bc" style="color: $text; font-family:
$font; font-size: $fontsize">4/4</td></tr>
but can't because it is evaluating it mathematically, try using the HTML
character entity for /, &#047;

echo("<tr><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text;
font-family: $font; font-size:
$fontsize\">$server->server_num_players&#047;$server->server_max_players</td
></tr>");

Hope this is what you meant.

-Ben

-----Original Message-----
From: Ender [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Simple Questions


Okay few questions, I am pretty new to this hehe.

If I have a number say, 123.123.123.123.

$ip = 123.123.123.123;

How do I put a starting " and an ending " to make it

"123.123.123.123"

AND

This doesn't work:

echo("<tr><td align=\"center\" bgcolor=\"$bc\" style=\"color: $text;
font-family: $font; font-size:
$fontsize\">$server->server_num_players."/".$server->server_max_players</td>
</tr>");

What do I need to do to put a / between the two variables?


Best regards,

Ender [Clan Leader]
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to