I have this error message:
Fatal error: Uncaught Error: Call to undefined function mysqli_connect()
My code is :
<?php
$localhost="localhost";
$root="root";
$password="";
$database="company";
$connectDB=mysqli_connect($localhost,$root,$password,$database);
i've checked these solutions down below in this website and other websites :
- php(ini) in XAMPP and removing (;) before extension=mysqli and also the PDO extension.
- i've uninstalled XAMMP and reinstalled it.
- i've check this code on the other system and it was OK but unfortunately , not worked in my computer.
I don't know everybody has solved this problem by removing ;
before the extensions but this is not working in my system!
this is a super simple code but with a big bug (LOL)