I am using the following script to connect but keep getting
<?php
$conn = mysql_connect("", "mjohn", "");
mysql_select_db("testDB",$conn);
?>
but keep getting this error
Fatal error: Call to undefined function mysql_connect() in C:\Program
Files\Apache Group\Apache2\htdocs\test.php on line 2
if i change line 2 to
<?php
$conn = mysqli_connect("", "mjohn", "");
mysql_select_db("testDB",$conn);
?>
i get this
Fatal error: Call to undefined function mysql_select_db() in C:\Program
Files\Apache Group\Apache2\htdocs\test.php on line 3
What am i doing wrong?
Thanks in advance
MJ