if ((int)$_GET['id'] == $_GET['id']) { $read = mysql_query("SELECT * FROM Gallery WHERE id={$_GET['id']}"); $array = mysql_fetch_array($read); }