php 用户注册实例代码,适合初学者
程序员文章站
2024-01-04 18:44:58
...
"; session_destroy(); } } function checkusername($username) { $sql2 = "select uid from user_list where username='" . mysql_escape_string($username) . "'"; $result = mysql_query($sql2) or die('ERROR: ' . mysql_error()); if (mysql_num_rows($result) > 0) { echo "该用户名已经存在,请更换!"; exit(); } else { echo ""; } } ?>
文章链接:
随便收藏,请保留本文地址!