Hello Ray,
I have this error once again and cannot see why, I wonder if you can see where I went wrong.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /homepages/37/d415519235/htdocs/net100test/Connections/conn1_i.php:6 Stack trace: #0 /homepages/37/d415519235/htdocs/net100test/index2.php(1): require_once() #1 {main} thrown in /homepages/37/d415519235/htdocs/net100test/Connections/conn1_i.php on line 6
<?php
$host_name = 'db5000128513.hosting-data.io';
$database = 'dbs123020';
$user_name = 'dbu258484';
$password = 'xxxxxx';
$conn1_i = mysql_connect($host_name, $user_name, $password, $database);
if (mysql_errno()) {
die('<p>Failed to connect to MySQL: '.mysql_error().'</p>');
} else {
echo '<p>Connection to MySQL server successfully established.</p >';
}
?>
Many thanks
John