How do I inlinestyle variables and free tekst within PHPtags
Posted: Tue Oct 04, 2011 5:16 am
Hi.
I have this working PHP script.
I want to inline style the variable and the tekst in bold and red.
How do I do this? It seems to be a bit different than in normal HTML.
Regards Morris
I have this working PHP script.
I want to inline style the variable and the tekst in bold and red.
How do I do this? It seems to be a bit different than in normal HTML.
Code: Select all
<?php
$chart = mysql_query("SELECT * FROM Hitlist ORDER BY total DESC limit 5");
$num_rows = mysql_num_rows($chart);
while($row = mysql_fetch_assoc($chart))
{echo $row['artist']." ... "
.$row['city']." ("
.$row['country'].") "
.$row[[b][color=#FF0000]'total'[/color][/b]]." [b][color=#FF0000]USD[/color][/b] <br>";}
?>