Switching dbs in midstream
| From: | John Meyer | Date: | Sun, 27 Oct 2002 16:59:22 +0000 |
| Subject: | Switching dbs in midstream | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16580@lists.php.net to get a copy of this message | ||
Hi,
I have a situation where I may have to switch the database while I am
looping a resultset. If I do a mysql_select_db within the middle of that,
will that change the initial resultset, e.g
while ($row = mysql_fetch_array($result)) {
mysql_select_db($anotherdb);
//do stuff
mysql_select_db($formerdb);
}