Type this line of code before your line 

$db = mysql_pconnect("localhost", "testdb", "test123") or
die(mysql_error());

The error u get will be pretty descriptive.
If not revert back to me.


nev L.




-----Original Message-----
From: Ricardo Fitzgerald [mailto:[EMAIL PROTECTED]]

@ $db = mysql_pconnect("localhost", "testdb", "test123");
if (!$db)
{
 echo "Error: could not connect to database. Please try again later.";
 exit;
}
mysql_db("mydb");
...

What can be wrong ?
I'm starting to learn both php and mysql and I still can't understand
why this happened.

Regards,
Rick


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to