Before marking duplicate please understand that I have tried all the solutions mentioned in other similar question.
I have hosted my website in amazon ec2.
I have done everything possible to make mysqli_connect
work, still didn't find solution for it.
Have tried following in php.ini
- comment out :
extension=msql.so
extension=php_mysqli.dll
- restarted apache2 server.
the code is as follows.
where i have defined those variables before using.
<?php
$con = mysqli_connect($mysql_host,$mysql_user,$mysql_password);
?>
The error I am getting is
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /var/www/html/connect.php:2
Please be supportive and help me..