Hi Guys,
This is my script:
<?
mysql_connect('localhost', 'username', 'password')
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");
exec("cp $picture http://localhost/images/$picture_name_thumb");
If ($result)
echo "Success<br>\n";
echo "file name: $picture_name_thumb<br>\n";
echo "<img src=images/$picture_name_thumb><br>\n";
?>
My problem is that i can't get the actual image to show in the browser. The other echo elements work. Is my script correct for displaying the image?
Cheers,
micmac