The testing script is simple:
Code: Select all
$dbc = mysqli_connect($dbhost, $dbusername, $dbpassword, $dbdatabase) or die ("ERROR: Cannot connect");The same testing script works fine on the localhost, xampp.Fatal error: Call to undefined function: mysqli_connect() in /home/hppin3/public_html/demo/test/test_mysqli_availability.php on line 53
mysqli extension in php.ini is commented out.
I have a shared host domain and 4-5 subdomains. All have the same problem. After changing from mysqli to mysql, the scripts run well.
I sent emails to the service department, they never respond. Usually they don't respond to those script problems. But I cannot tell whether it is a website problem or a script problem. Since the mysqli script works fine on the localhost, it should be a website problem. Why they don't respond?
Any advice will be very helpful.
Thanks