note 60649 deleted from function.mysql-connect by bjori

From: Date: Sat, 15 Apr 2006 18:40:57 +0000
Subject: note 60649 deleted from function.mysql-connect by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108195@lists.php.net to get a copy of this message
Note Submitter: shane at javartii dot com ---- In addition to the comments made by baldurien at club-internet dot fr it's really important to specify which resource id to use in queries when connecting to two or more databases at once. A lot of my code was using mysql_select_db($database_Name, $resource_ID); $result = mysql_query($query); When using one database only this presents no problem. When using two different connections from two different servers everything needs to sepcify which resource to use. $result = mysql_query($query, $resource_ID); Although this is probably stating the obvious to old hands it's definately a trap to new players (and lazy coders like me)

« previous php.notes (#108195) next »