Can someone tell me why this code doesn't work to call up an image link and put it in the HTML?
Thanks in advance.
<?php
if(isset($GET["id"])){$id=$GET["id"];}else{exit;}
$db = mysql_connect(XXXXX);
@mysql_select_db(XXXXX,$db);
$sql="SELECT * FROM gallery WHERE id=$id";
$query=@($sql, $db);
if (mysql_num_rows ($query)>0){
$row=@mysql_fetch_array ($query);
$image=$row["thumb"];
print $image;}
?>
then in my html: <img src="thumbs/thumb.php3?id=1">