In PHP, an unexpected variable $sql caused an exception error.
P粉781235689
2023-08-02 14:50:45
<p>I thought I had just written the complete code with no errors, but why does it keep showing errors like this? I've tried starting with basic issues like checking for semicolons, I've also tried renaming the $sql variable, and even rewriting the code on line 28, without success. Here is a screenshot of the code. I'm sorry about the image quality issue. This is an error message from Index.php. </p>
The mysqli_connect object must be returned from konesti.php, and the connection must be carefully checked to see if it is normal. Usually, this error is caused by missing objects.