[PHP] Re: db connect

2001-11-30 Thread Ian
Fred, I am more confused now that I know the script works your end. I have the sample_db setup correctly, as I can connect to it if I change the $default_dbname value to hold the sample_db. Whatever I put in the $default_dbname variable I can connect to no trouble. Passing the database as an

[PHP] Re: db connect

2001-11-29 Thread Fred
I'm not sure what that script is supposed to accomplish, it seems a bit obfuscated and useless to me, nevertheless it correctly used the supplied database rather than the default one when I tested it. You may want to make sure that your sample_db actually exists. Fred Ian <[EMAIL PROTECTED]> wr

[PHP] Re: db connect

2001-11-29 Thread Ian
Fred, sample_db 'is' my database name, so this should work? Well it keeps choosing my $default_db value. Can you try my code and tell me if it works for you please? Thankyou. "Fred" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How are you passing the name

[PHP] Re: db connect

2001-11-29 Thread Fred
How are you passing the name of the database? Are you replacing 'sample_db' in the line: $link_id = db_connect('sample_db'); in show_more_db.php? If so, then I do not see where there would be a problem. Fred Ian <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...