hi,

I am new to PHP/mySQL.

When i connect to phpMyAdmin to work with my database I do not have any 
problem of connection, but when I try to connect to my mySQL DB using this 
script (http://www.utpala.net/query1.php), then I get the following error 
message,

Does anyone see something wrong in my code?

Thanks in advance

Philippe

<?

$myserver = '**********' ; //
$mylogin = '**********' ;
$mypassword = '*********' ;
$mydatabase = '*********' ;

$db = mysql_connect($myserver, $mylogin, $mypassword);
mysql_select_db($mydatabase,$db);
$req = mysql_query('SELECT * FROM users');
$res = mysql_numrows($req);

echo 'number of lines: '.$res.' .';

mysql_close($db);

?>

Warning: Access denied for user: '[EMAIL PROTECTED]' (Using 
password: YES) in /home/sites/site14/web/query1.php on line 8

Warning: MySQL Connection Failed: Access denied for user: 
'[EMAIL PROTECTED]' (Using password: YES) in 
/home/sites/site14/web/query1.php on line 8





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