Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

php code

Name: Anonymous 2007-08-01 19:16 ID:Ge7BfjLz

Here is a code snippet from my project
$db = mysql_pconnect('', 'name', 'pass');
$sd=  mysql_select_db("books",$db);

the first part works perfectly and it connects to the mysql
however it will not choose the database i need.

Name: Anonymous 2007-08-02 5:33 ID:Ioxtf6W6

Try a test first:

@mysql_pconnect("localhost", "username", "password") or die(mysql_error());
@mysql_select_db("books") or die(mysql_error());

And see what goes wrong.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List