[thelist] mySQL and PHP troubles

travis forden travis at treevis.com
Mon Sep 3 08:20:03 CDT 2001

it was the database name. Turns out it was not recognizing the db switch in the function db_connect(). It raised doubts in my mind, but I wasn't sure if I should take it out. Anyway, the problem is now fixed and I have a better idea how to connect to DBs.

Thanks, Anthony.


At 01:30 am 9/3/01, you wrote:

>I don't see a place where you are changing the target Database to "sample_db".
>Your function "db_connect()" just ignores and variables passed to it, so my guess is that you are attempting to select against a nonexistent table within the test database.
>Try changing,
>$default_dbname = 'sample_db';
>Anthony Baratta

More information about the thelist mailing list