[thelist] php/mysql/html
Jay Blanchard
jay.blanchard at niicommunications.com
Mon Aug 4 13:56:45 CDT 2003
[snip]
<tr>
<td>$title</td>
<td>$category</td>
<td>$actor_1</td>
<td>$actor_2</td>
<td><img src='images/$rating_star.gif'></td>
</tr>
[/snip]
Concatenation is a dot
<td><img src='images/$rating._star.gif'></td>
Watch the single quotes and double quotes, single quotes will not
evaluate variables...so the line should really be...
print("<td><img src=\"images/" . $rating . "_star.gif\"></td>");
See http://us2.php.net/types.string for more on quotes
HTH!
More information about the thelist
mailing list