📌  相关文章
📜  php 检查用户是否存在于数据库中 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:42.349000             🧑  作者: Mango

代码示例2
$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"; }