select * from tabella where id = 2

e poi con mysql_num_rows() verifichi se viene restituito il record

http://it.php.net/manual/en/function.mysql-num-rows.php