RE: [PHP] Simple Questions
| From: | Benjamin Munoz | Date: | Tue, 08 May 2001 23:56:10 +0000 |
| Subject: | RE: [PHP] Simple Questions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52001@lists.php.net to get a copy of this message | ||
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 /, /
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>");
Hope this is what you meant.
-Ben
-----Original Message-----
From: Ender [mailto:ender@particlesun.com]
Sent: Tuesday, May 08, 2001 3:45 PM
To: php-general@lists.php.net
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]
ender@particlesun.com