gottaloveit
New Member
- Messages
- 33
- Reaction score
- 0
- Points
- 0
Hello again,
I am attempting to display an image using PHP and mysql. The mysql database stores the url to the picture, which is stored on my server. So the url would be something like images/bars/nevermind1.jpg, and I just want the PHP to call up that image and display it in the table.
I think I just have a syntax error, but can't seem to nail it down. I've tried about 1000 different variations (but not the right one!).
Below is the line that does not cause any errors, but of course only displays in text the url to the photo:
echo "<td width='280' height='250' rowspan=3>" . $row['photo']. "</td>";
And now, below is what I think SHOULD display the actual photo, but obviously has some problems since it causes an error:
echo "<td width='280' height='250' rowspan=3>" <img src=\".$row['photo'].\" /> "</td>";
Thanks again for any advice!
Jamie
I am attempting to display an image using PHP and mysql. The mysql database stores the url to the picture, which is stored on my server. So the url would be something like images/bars/nevermind1.jpg, and I just want the PHP to call up that image and display it in the table.
I think I just have a syntax error, but can't seem to nail it down. I've tried about 1000 different variations (but not the right one!).
Below is the line that does not cause any errors, but of course only displays in text the url to the photo:
echo "<td width='280' height='250' rowspan=3>" . $row['photo']. "</td>";
And now, below is what I think SHOULD display the actual photo, but obviously has some problems since it causes an error:
echo "<td width='280' height='250' rowspan=3>" <img src=\".$row['photo'].\" /> "</td>";
Thanks again for any advice!
Jamie