Is select_db necessary?

From: Date: Wed, 12 Aug 2009 03:23:21 +0000
Subject: Is select_db necessary?
Groups: php.general 
Request: Send a blank email to php-general+get-296680@lists.php.net to get a copy of this message
I have seen different scripts for working with SQL, and most follow the same method with on difference. Variables are defined (host, password, etc.) mysql_connect command //then, the difference mysql_select_db command //back to common $sql = "SELECT ... " $result = mysql_query($ql) Is the database selection necessary, or is that implied with a SELECT or other SQL command?

« previous php.general (#296680) next »