以下功能不起作用。我不明白为什么。
function access_apply($email,$pwd,$forname,$surname,$postcode,$telephone,$mobile){
global $cnx;
$pwd = bcrypt_hash($pwd);
$q = $cnx->prepare("INSERT INTO `users` (email, pwd, forename, surname, postcode, telephone, mobile) VALUES (:email, :pwd, :forename, :surname, :postcode, :telephone, :mobile)");
$q->execute(array(':email' => $email, ':pwd' => $pwd, ':forename' => $forename, ':surname' => $surname, ':postcode' => $postcode, ':telephone' => $telephone, ':mobile' => $mobile));
}
一旦它被调用,代码就会中断,并且不会执行任何进一步的操作。