Hi All,
I did a bunch of searches and all of them had way more complicated code than I could apply, so I will post my question.
I have an image that the image name is in my mysql table.
All I need to do is get the name from the query (which is based on the product ID for that page) and display the logo.
Here is my code so far.
<?PHP
//get the item from the table
$sql = "SELECT prodGroup, prodName, prodDesc, prodDetails, prodType, prodTeacherRecc, prodColor, prodImgDim, prodLogo, prodImgAlt, ";
$sql.= "prodIsCC, prodRuntime, prodMetaDesc, prodMetaKeywords FROM tblProduct WHERE prodID=" . $prodID;
$result=@mysql_query($sql);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
//display the image
<img src="http://www.intheclassroom.org/noFrames/images/'<?PHP echo $row['prodLogo']; ?>'" width="100" Height="50">
That is only the code for the image that I am having issues with.
I do not get an error, just "" for the image name in the source code for the page.
Thanks in advance,
Don