Uploading your image as $Img.
"); } else { echo("
Could Not Save file as $Img
"); } $photo = $imgfile; mysql_query("insert into gallery(owner, short_title, title, description, image_loc, day, month, year, active ) values('$_SESSION[UserName]', 'image_name', '$description', '$photo', '$day', '$month', '$year', '0')"); echo "Uploading your images now... Please Wait..... "; echo ""; } else { function gethint($name) { $q = mysql_query("SELECT Setting_Value from settings WHERE Setting_Name = '$name' LIMIT 0,1"); $r = mysql_fetch_row($q); return $r[0]; } ?>