Re: No database selected
From: AJ (nospam_at_redcatmedia.net)
Date: 09/16/04
- Next message: AJ: "Re: Transferring to a new page"
- Previous message: Hugo Coolens: "Re: problem with str_replace and single quote"
- In reply to: Alvaro G Vicario: "Re: No database selected"
- Next in thread: Alvaro G Vicario: "Re: No database selected"
- Reply: Alvaro G Vicario: "Re: No database selected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Sep 2004 12:46:57 +0000 (UTC)
"Alvaro G Vicario" <alvaro_QUITAR_REMOVE@telecomputeronline.com> wrote in
message news:1id7sbtl6y3s8.p2excuoiqd2p.dlg@40tude.net...
> *** AJ wrote/escribió (Thu, 16 Sep 2004 10:54:02 +0000 (UTC)):
> > I'm running a pretty standard PHP page and it keeps coming up with 'No
> > database selected'.
>
> Do you use and error-check mysql_select_db()? Sorry for the question, but
> sometimes the answer is the simpliest.
Nope, even simpler. I are stoopid!
Code snippets...
$database_FRED = "database";
mysql_select_db ($database_BOB.....
Spot the deliberate mistake.
What I STILL don't get is that it actually worked sometimes and not others.
What I even more don't get is that on my testing server it ALWAYS worked.
AJ
- Next message: AJ: "Re: Transferring to a new page"
- Previous message: Hugo Coolens: "Re: problem with str_replace and single quote"
- In reply to: Alvaro G Vicario: "Re: No database selected"
- Next in thread: Alvaro G Vicario: "Re: No database selected"
- Reply: Alvaro G Vicario: "Re: No database selected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|