[SOLVED] href and image source
Posted: Mon Apr 04, 2005 7:19 pm
I'm new to php and am trying to duplicate some html code in php.
This is an example of code that I have that works.
echo "<a href = \"$url\">\"aloe.jpg\"</a>\n";
I can create the $url from mysql data but I haven't been able to figure out how to create an <img src of "aloe.jpg". Insted the word "aloe.jpg" appears when I run the script.
I checked the php manual and and googled just about phrase I could think might get some results. No luck!
Any help would be very appreciated.
Thanks
This is an example of code that I have that works.
echo "<a href = \"$url\">\"aloe.jpg\"</a>\n";
I can create the $url from mysql data but I haven't been able to figure out how to create an <img src of "aloe.jpg". Insted the word "aloe.jpg" appears when I run the script.
I checked the php manual and and googled just about phrase I could think might get some results. No luck!
Any help would be very appreciated.
Thanks