Re: mysql_query and mysql_db_query

From: Date: Fri, 08 Sep 2000 21:42:32 +0000
Subject: Re: mysql_query and mysql_db_query
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-2756@lists.php.net to get a copy of this message
you specify the database in your mysql_query() or mysql_db_query() call: $sql = "SELECT * FROM table WHERE uid = '5'"; mysql_db_query(database_name, $sql); Forgive me if I misunderstood the question... Joe Kevin Xin Lin wrote: > int mysql_connect ([string hostname [:port] [:/path/to/socket] [, string > username [, string password]]]) > ---- > > This is the syntax of mysql_connect, I don't see any db information. > What DB is in USE when I create a connection to MySQL? What have I > overlooked? > > Thanks. > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#2756) next »