topboi Posted April 15, 2008 Share Posted April 15, 2008 right ive created a imagetest table in phpmyadmin and added a image to it, i can view the first image however when i add another image i am having trouble viewing the 2nd image ie 'nokia' can anyone help? my code is as follows without the //, only OutBack image is displayed: <?php $DB_Host = "xxxxxx"; $DB_Username = "xxxxxx"; $DB_Password = "xxxxx"; $DB_Name = "xxxxxxx"; $ret=mysql_connect($DB_Host, $DB_Username, $DB_Password) or die ("Can no connect"); $db=mysql_select_db($DB_Name); //$sql=" SELECT image FROM `imagetest` WHERE Name = 'OutBack' LIMIT 0 , 30 "; //$result=mysql_query($sql); //$row=mysql_fetch_row($result); //$img=$row[0]; //header("Content-Type: image/jpeg"); //print "$img"; //$db=mysql_select_db($DB_Name); //$sql=" SELECT image FROM `imagetest` WHERE Name = 'nokia' LIMIT 0 , 30 "; //$result=mysql_query($sql); //$row=mysql_fetch_row($result); //$img=$row[0]; //header("Content-Type: image/jpeg"); //print "$img"; ?> Link to comment https://forums.phpfreaks.com/topic/101231-adding-images-and-displaying-low-priority/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.