Well, you will laugh, but it worked. :)) Not really, the way you showed - I commented out the username and password and it worked! :)) Mang... So whose fall was it? Definitely not php, right?... okay. Thanks Gregory! :))
----- Original Message ----- From: "Gregory Hernandez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 6:05 PM Subject: [PHP] Re: *Cannot connect to db > just humor with this: > > try commenting out the lines > > $dbname = "marketingcompany"; > $hostname="localhost"; > > to appear as > > // $dbname = "marketingcompany"; > // $hostname="localhost"; > > i had the same problem you are having and for some reason which i still > don't understand, the solution i proposed above worked. i don't think > this is the correct way to solve this. but, for now (it was a project > for a class) i'll live with it. > > gregory > > > >>> "Alexey Lysenkov" <[EMAIL PROTECTED]> - 12/18/02 10:49 AM >>> > Warning: MySQL Connection Failed: Access denied for user: > 'tmc@localhost' > (Using password: YES) in e:\~~~\~~~\apache\website\~~~\testdb.php on > line 8 > > The guy at the support says, that everybody else can connect no > problems, > sent me the code, which I copy-pasted and I still have this error. :(( > > > > "Bastian Vogt" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > leave out the "@", and give us the error message. > > "@" suppresses error messages of any function. > > > > HTH, > > Bastian > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php