I have created a google cloud instance on Compute Engine. I want to check the connectivity using PHP code.
<?php
$dhost="my public IP";
$duser="username";
$dpassword="password";
$database="test";
$connection=mysqli_connect($dhost, $duser, $dpassword) or die("Could not Connect to SQL Server ");
?>
Getting the following error
Fatal error: Uncaught Error: Call to undefined function mysqi_connect() in /opt/lampp/htdocs/dbconnect.php:6
from my terminal i installed the following
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-php7.0
Still the problem exists..