Hello
I make test with MSQLI:
<?php
$servername = "**********";
$username = "**********";
$password = "**********";
// Create connection
$conn = mysqli_connect($servername, $username, $password);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
echo "Connected successfully";
?>
With conection successfully.
And then wit MSQL:
<?php
$server = "**********";
$database = "**********";
$username = "**********";
$password = "**********";
$mysqlConnection = mysql_connect($server, $username, $password);
if (!$mysqlConnection)
{
echo "Please try later.";
}
else
{
mysql_select_db($database, $mysqlConnection);
}
?>
Become this error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/mojeslik/www/dbtest.php:7 Stack trace: #0 {main} thrown in /home/mojeslik/www/dbtest.php on line 7