Error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_mysqli.dll' - /usr/lib/php/20151012/php_mysqli.dll: cannot open shared object file: No such file or directory in Unknown on line 0
I have this code,
$con=mysqli_connect("localhost","rss","(pass removed)","rss");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
// Perform queries
mysqli_query($con,"INSERT INTO members(username, password) VALUES('test', 'test'");
mysqli_close($con);
And it isn't working. PHP is saying MySQLi is not installed, but on phpinfo()
it's fine?
I've installed mysqli
with apt-get install php7.0-mysql php7.0-mysqli
, still isn't working.
It is connecting to the database.
Any help would be appreciated.