Code is running ok, but error_log has error for each submit:
PHP Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ” at line
The line is :
$query = mysqli_query($conn, "SELECT * FROM users WHERE idUsers = $id") or die("error occurs");
How to add mysqli_report() or other suggestions?
New contributor
Roc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.