[thelist] php/mysql/html

Jay Blanchard jay.blanchard at niicommunications.com
Mon Aug 4 13:56:45 CDT 2003

<td><img src='images/$rating_star.gif'></td>

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


More information about the thelist mailing list