I'm currently trying to make a login system and it all works in xampp but when I upload it and connect it to my hosted database it just gives me an error.
error is:
PHP Fatal error: Uncaught Error: Call to undefined method mysqli::error() in /path/to/public/gnpfonline/Beta/register.php:19
On line 19 is $result = $mysqli->query("SELECT * FROM users WHERE email='$email'") or die($mysqli->error());
. I don't quite see whats wrong as it works fine in xampp but not on the hosted SQL database, I have tried 2 different sites for this and they both do not work.