Re: Weird MySQL error
| From: | Phil Driscoll | Date: | Wed, 01 Nov 2000 14:22:57 +0000 |
| Subject: | Re: Weird MySQL error | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3620@lists.php.net to get a copy of this message | ||
Check the return from the select_db:
$db = mysql_connect ("localhost", $user, $pw);
$ok=mysql_select_db("klokke", $db);
if(!$ok)
{
echo('error selecting db :'.mysql_error());
}
else
{
the rest of your stuff...
}
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org