The error message you get is not related to PHP, but to the access right
preset into MySQL.

Basically, MySQL tell you that you can't connect to it with the user name
testing.

Check your right access in MySQL.

Daniel


> -----Original Message-----
> From: Harpreet [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 02, 2001 15:07
> To: Mysql (E-mail)
> Subject: Error message
>
>
> Dear list members,
> This is the first time i am trying to connect to my database on
> mysql using
> php.
> The code is :
> <HTML>
> <?php
> $hostname = "localhost";
> $password = "password";
> $user = "testing";
> mysql_connect($hosthame,$user,$password);
> $result = mysql("assetbase","SELECT param FROM parameter_tbl");
> $total_rows = mysql_numrows($result);
> echo $total_rows;
> ?>
> </BODY>
> </HTML>
> Error message:
> Warning: MySQL Connection Failed: Access denied for user:
> 'testing@localhost' (Using password: YES) in /var/www/html/contact.php on
> line 8
>
> Please help.
> Regards,
> Harpreet Kaur
> Software Developer
> Crispin Corporations Inc.
>
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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