Jump to content

displaying pictures from a database


johnnyblaze9

Recommended Posts

I'm using the following code to display user specific photos from a sql database, but it only diplays the file name of the pic and I can't figure out why...can anybody help?

 

 

$resultsPhotos = mysql_query("SELECT FileName, Description, Created, Variety, YearPlanted, Finca, FieldName FROM vwContactPhoto

where ContactID ='{$_SESSION['ContactID']}'") or die(mysql_error());

 

while($valuesPhotos = mysql_fetch_array($resultsPhotos))

{

        echo "<img src='trees/" . $valuesPhotos['FileName'] . "'>";

        echo '<br /><br />';

 

 

Link to comment
https://forums.phpfreaks.com/topic/102938-displaying-pictures-from-a-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.