I'm getting the 'access denied error while trying to connect to the database. Here is the code:
<?php
mysql_connect("00.00.00.00:00000","user","pass");
mysql_select_db("dbname");
$q=mysql_query("CALL GetMaterialInfo('".$_REQUEST['user']."','".$_REQUEST['pass']."','6c3e91d3')");
while($e=mysql_fetch_assoc($q))
$output[]=$e;
print(json_encode($output));
mysql_close();
?>
I changed the ip adress of the host ofcourse (its not all zero's) and the username and password and database name. I'm sure the user and password, aswel as the host ip and portnumber and the database name are correct. I managed to connect to the database allready with JDBC connector but it gives the following error through PHP script:
<b>Warning</b>: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'username'@'192.168.1.1' (using password: YES) in <b>/www/zxq.net/t/e/s/testphpbach/htdocs/Connection.php</b> on line <b>2</b><br />