Php Nginx-严格的标准:在
我收到这条消息,当主机在Nginx中运行时,如果我使用Apache2就可以了 严格的标准:只有变量才能通过引用传递Php Nginx-严格的标准:在,php,variables,pass-by-reference,Php,Variables,Pass By Reference,我收到这条消息,当主机在Nginx中运行时,如果我使用Apache2就可以了 严格的标准:只有变量才能通过引用传递 那代码怎么了?感谢Apache HTTPD和nginx可能有不同的PHP配置,具有不同的错误报告设置。 $stmt = $mysqli->prepare("INSERT INTO kategori VALUES (NULL, ?)"); $stmt->bind_param("s", strtolower(trim($_POST['kategori']))); if($s
那代码怎么了?感谢Apache HTTPD和nginx可能有不同的PHP配置,具有不同的错误报告设置。
$stmt = $mysqli->prepare("INSERT INTO kategori VALUES (NULL, ?)");
$stmt->bind_param("s", strtolower(trim($_POST['kategori'])));
if($stmt->execute()) {
showAlert("Success add new category.", "success");
}
if (strpos($stmt->error,'Duplicate entry') !== false) showAlert("That category is already exist.");