0
I’m trying to create a connection by MYSQLI but this giving error Fatal error: Call to Undefined Function mysqli_connect() in /home What could that be? That
$link = mysqli_connect("localhost", "xx", "xxx", "xxx");
if (!$link) {
echo "Error: Unable to connect to MySQL." . PHP_EOL;
echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
exit;
}
echo "Success: A proper connection to MySQL was made! The my_db database is great." . PHP_EOL;
echo "Host information: " . mysqli_get_host_info($link) . PHP_EOL;
mysqli_close($link);
See if the extension is installed, make a phpinfo()
– rray
I put an image up with a print of a single record containing mysqli
– Fabio Henrique
This seems to be the credits, see in php.ini if you have any lines like
mysqli
if you have a;
remove it and restart apache– rray
Which operating system is using?
– rray
linux na godaddy
– Fabio Henrique
Is it ubuntu? Edora?
– rray