[thelist] re: php/mysql/htm - solved

Roger Harness magic32 at jps.net
Thu Aug 7 15:39:13 CDT 2003

A few days ago I asked the group for some help with my php/mysql/html
question. In diplaying an image with a dynamic href tag, I was trying to get
this to work;

<img src='images/$rating_star.gif'> with rating being my variable.

Anyways, I tried different combinations/variations, but couldn't get it to
work correctly. Two folks on here, Simon, and Mike suggested curly braces,
and that worked perfectly!

<img src='images/{$rating}_star.gif'>

Thanks for that, and also the other replies, which I will try to wrap my
grey matter around when I understand more.

As always, much obliged folks!


More information about the thelist mailing list