Is select_db necessary?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux