php - 括号在 PHP 代码中丢失
问题描述
解析错误:语法错误,意外的“{”
Lz,我想知道你能帮帮我吗,我找不到。
if( isPost() ) {
extract($_POST);
if( validation_required([$name , $family ,$username , $email , $password]) ) {
$conn = connectToDB();
if (!userGet($username,$conn){
saveUsers($_POST) ? redirect("index.php") : $status = 'you are failed';
} else {
$status = "This username is exist";
}
} else {
$status = 'your information is not valid';
}
}
解决方案
这是第 5 行:
if (!userGet($username,$conn){
应该有 2 个右括号
if (!userGet($username,$conn)){
推荐阅读
- visual-studio-2012 - 为 VS2012 安装 Team Explorer
- java - 在 MI 手机中录音使对方的声音变小
- javascript - 如果密码不正确,我无法在文本框下方创建元素
- java - 如何在java中使用informix unload语句?
- reactjs - 多个路由的单个 Web 套接字连接
- r - 在不同的网格上绘制变量子集
- go - 连接超时访问外部 IP 谷歌计算引擎
- python - Django/Python 如何本地化渲染文本的引号?
- c++ - 互换使用 max_heap 和 min_heap
- python - Tinymce 没有显示在 django admin 中