Fatal error: Class 'mysqli' not found

I am trying to set up a members based register and log in system. This connects to their own profile page. I’ve created all this and it runs fine on MAMP but I want to test it on a live server. I uploaded to a my server and set up the database on phpMyAdmin and tried to register a new user on my register.php page. The error im getting is:

Fatal error: Class ‘mysqli’ not found in public_html/register.php on line 3

the code on line 3 is:

$db = new mysqli(‘localhost’,‘s519970.brunelweb.net’,’****************’,‘s519970_members’) or die(‘error’);

Im new to PHP and MySQL so any help somone can offer me would be greatly appreciated. If there’s anymore information I can provide to help you help me let me know. Thanks.

You most likely don’t have the mysqli drivers compiled in or enabled in php.ini. What version of php are you using and on what platform?

Sponsor our Newsletter | Privacy Policy | Terms of Service