<?php
$link = mysql_connect("localhost", "root", "") or die("Could not connect");
$db = mysql_select_db("goal123", $link) or die("Could not select database");
?>
I got two error messages "The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\Online Banking\db_connect.php on line 3"
and "Warning: mysql_connect(): in C:\wamp\www\Online Banking\db_connect.php on line 3"
After trying something like this
<?php
$link = mysqli_connect('localhost', 'user', '');
mysqli_select_db('testdb', $link);
?>
I'm still getting a warning message that says "Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in C:\wamp\www\Online Banking\db_connect.php on line 4"
Can somebody help me out