How does thinkphp determine whether the username already exists in the database
$db_username = Db::name('用户表')->where('username','=','用户名')->find();
if($db_username != 0){
echo 'Username already exists';
}
$db_username = Db::name('用户表')->where('username','=','用户名')->find();
if($db_username != 0){
echo 'Username already exists';
}