Connection string and Monday Morning blues

From: Date: Mon, 25 Nov 2002 07:22:14 +0000
Subject: Connection string and Monday Morning blues
Groups: php.general 
Request: Send a blank email to php-general+get-125895@lists.php.net to get a copy of this message
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 (#125895) next »