Hi i have the follow code
L2: $link=mysql_connect("localhost:/tmp/mysql.sock","username","mypassword");
L3:
$dbase=mysql_select_db("dbtest","$link");
but when i run the php there is these error
Warning: Supplied argument is not a valid MySQL-Link resources in ......L3
the php and mysql is running and the database is indeed inside mysql database.
May i know what have went wrong??
Thanks
L2: $link=mysql_connect("localhost:/tmp/mysql.sock","username","mypassword");
L3:
$dbase=mysql_select_db("dbtest","$link");
but when i run the php there is these error
Warning: Supplied argument is not a valid MySQL-Link resources in ......L3
the php and mysql is running and the database is indeed inside mysql database.
May i know what have went wrong??
Thanks