Database connections

From: Date: Sun, 01 Apr 2001 15:16:37 +0000
Subject: Database connections
Groups: php.general 
Request: Send a blank email to php-general+get-46505@lists.php.net to get a copy of this message
I'm using PHP on a windows box to access a MySQL database. I noticed that I do not need to open a database connection before performing a mysql_db_query(). Is this bad coding ? Should the database connection always be made ? Is this specific to Windows ? # $databaseConnection = mysql_connect ("localhost", "", ""); ## I don't seem to need this line, or the last one mysql_db_query("dbnam", "SQL query"); # mysql_close ($databaseConnection); Thanks, David. ----------------------- Fed202 Solutions www.fed202solutions.com Mobile : 07779 293368 -----------------------

« previous php.general (#46505) next »