Hi there,
Can anyone tell me why the
echo "<img src=http://localhost/images/$picture_name_thumb><br>\n";
part of my script won't bring up the image from the directory file. In my HTML form the user selects the image they want uploaded into the database and presses the Submit button which executes the PHP script below. The images full path is uploaded to the database, not the image itself. How do i change the script below to display the image in the browser?
<?
mysql_connect('localhost', 'micmac', 'esingil')
or die("Unable to connect to SQL server");
@mysql_select_db("typhoon_ent")
or die("Unable to select database");
$result = mysql_query("INSERT INTO bands (Band_Name,Profile,Picture_Name_Thumb)
VALUES ('$band_name', '$profile', '$picture_name_thumb')")
or die("Can't Perform Query");
If ($result)
echo "Success<br>\n";
echo "file name: $picture_name_thumb<br>\n";
echo "<img src=http://localhost/images/$picture_name_thumb><br>\n";
?>
Thanks,
mel