Jump to content

Adding images and displaying (low priority)


topboi

Recommended Posts

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";  

?>

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.