Re: Connection string and Monday Morning blues

From: Date: Mon, 25 Nov 2002 15:35:24 +0000
Subject: Re: Connection string and Monday Morning blues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125938@lists.php.net to get a copy of this message
Hello, There could be a lot of problems here but what *exactly* is the problem? No more coffee, perhaps? :) Post the error, if there's any. Or, take away the "@" sign and see what happens... - E "Paul Dionne" <PDionne@Speakeasy.net> wrote: > Ug, I hate Mondays. <stretches> must drink more coffee.</stretches> > > Anyway, got a problem I hope someone can help with or at least jumpstart my > brain. > > I wrote a few web pages, work fine on my machine. Uploaded them on Friday > and they don't seem to work. Looks like I am not connecting to the > database because every page I look at seems to end when it is suppose to > connect. > > //****************************************************************** > function ConnOpen($CheckForError) > { > > > > @ $db = mysql_pconnect("webserver", "username", > "password"); > if (!$db) > { > $CheckForError= "Error: Could not connect to database. Ple > ase try again later."; > return $CheckForError; > exit; > } > mysql_select_db("database"); > > > > } > //****************************************************************** >

« previous php.general (#125938) next »