Posted by:
manasdas
(---.254.63.217.dynamic.ttnet.com.tr)
I am using this code to connect mysql;
$connect=mysql_connect("localhost:3306","root",""
or die("ERROR CODE 1"
;
but when i tried it, an error said me to make it
$connect=mysqli_connect("localhost:3306","root",""
or die("ERROR CODE 1"
;
anyway it worked. But now, i can not connect to database
i'm using this code
mysql_select_db("members",$connect) or die ("ERROR CODE 2"
;
but it says
Warning: mysql_select_db() expects parameter 2 to be resource, object given in D:\Programs\wamp\www\db.db.db.php on line 3
so, what should i do?