I'm currently working on some PHP scripts and am having trouble that I haven't been able to find an answer to.
Whenever I use $conn->error, I get redirected to my custom 404 page. It doesn't change the location of the page, but just basically refreshes the page and throws a 404 error. Google isn't giving any answers. Am I missing something with my hosting plan?
Code:
$conn = new mysqli($servername, $username, $password, $dbname);
...
echo $conn->error
Whenever I use $conn->error, I get redirected to my custom 404 page. It doesn't change the location of the page, but just basically refreshes the page and throws a 404 error. Google isn't giving any answers. Am I missing something with my hosting plan?