Php mysql connection problem


#1

when i try and connect to the database i get the following error Call to undefined function mysql_connect(). now ive always used this and from searching the boards everyone else using php has been using mysql_connect also, but its not working for me.

heres the code im using
$conn = mysql_connect($zhost, $zname, $zpass);
@mysql_select_db($zdb, $conn) or die( “Unable to select database”);


#2

I’ve always had success with this:

$link = mysql_connect($hostname,$username,$password); mysql_select_db($database);---------------
Simon Jessey
Keystone Websites | si-blog