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