note 8555 added to mysql_select_db
| From: | locust at sixy dot com | Date: | Sun, 17 Sep 2000 05:55:32 +0000 |
| Subject: | note 8555 added to mysql_select_db | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5120@lists.php.net to get a copy of this message | ||
in a script which ran fine with PHP3, i had:
<i>mysql_connect($db_ip, $db_user, $db_pass);</i>
<i>require 'admin.inc';</i>
<i>mysql_select_db($story_db);</i>
...which worked fine, however PHP4 didn't like the ordering of this for some reason. so
don't put a require() between a mysql_connect() and mysql_select_db()...it confused me for
about 3 hours :)
http://www.php.net/manual/function.mysql-select-db.php