MySQL Forums
Forum List  »  PHP

Access denied...
Posted by: putraikim_n9 den
Date: December 14, 2005 01:51AM

hi experts


I am using php5 mysql4.1 apache on windows 2k
and i have upload my web already
when i try to connect with mySQL database it gives me error

Fatal error:

Warning: mysql_pconnect(): Access denied for user 'root'@'localhost' (using password: NO) in

Warning: mysql_db_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in

Warning: mysql_db_query(): A link to the server could not be established in

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in


but in locally it running properly...

sample code:

<?
define("DATABASE_HOST","localhost");
define("DATABASE_USER","root");
define("DATABASE_PASSWORD","");
mysql_connect(DATABASE_HOST,DATABASE_USER,DATABASE_PASSWORD); <---this problem
$db = "intake";
?>

include 'dbase.php';

$query = "SELECT * FROM biodata
WHERE bio_notentera = '$bio_notentera'
AND bio_pass = '$bio_pass'
";

$result = mysql_db_query($db,$query); <---this problem

if ( mysql_num_rows($result) > 0 ) <---this problem


waiting for suggesstion & please help me


Thanks in advance

Options: ReplyQuote


Subject
Written By
Posted
Access denied...
December 14, 2005 01:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.