My question is just similar to this question but I am using PHP version 7.4.1 in Windows 7 [32bit].
<?php
if(!function_exists('mysqli_init') && !extension_loaded('mysqli')){
echo 'We don\t have mysqli';
}
else{
echo'Yes';
}
mysqli_connect('localhost', "root", "", "akash");
?>
It returns:
We don\t have mysqli
Fatal error: Uncaught Error: Call to undefinedfunction mysqli_connect()
What I have tried:
As I have seen various answers on this problem and all the answers is simply based on the php.inf file but in my php directory there is no file of this name and so after looking on how to install this I couldn't really find a way, after visiting http://php.net/manual/en/mysqli.installation.php, I scrolled down to find the "PHP 5.3.0 and newer" section where it says I wouldn't need to worry about installing it.
phpinfo();function and display that output to see if mysqli is loaded, or alternatively on the command line dophp -i | grep mysqli. If it is not, then look in the output of those commands for the path to the php.ini file so you can enable it.