$sql = mysql_query("SELECT * FROM `tablo` WHERE `id` = '$id' "); if(mysql_num_rows($sql) > 1) { // İşlemler }else{ echo "Böyle Bir Kayıt Yok Gibi"; }