php$hash = mysql_real_escape_string($_GET['h']);$sql = mysql_query("SELECT id, h, active FROM tablename WHERE id=$id AND key=$hash") or die(mysql_error());
我想在一个有4个字段的表中查询: id、user_one、user_two、hash。$check_con = mysql_query("SELECT count(hash) FROM messages_group WHERE (user_one=$my_id AND user_two=;
if ($amsik['COUNT(hash)']