📅  最后修改于: 2022-03-11 14:53:42.349000             🧑  作者: Mango
$q = mysql_query("SELECT username FROM User WHERE username=$username", $cnn); if (mysql_num_rows($q) != 0) { echo "Username exists"; } else { echo "Write your code here"; }