Here is my connection code, I have made mysql database in 000webhost and I have also uploaded file in 000webhost but every time I am getting error like this " PHP Error Message
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a1346052'@'10.1.1.39' (using password: YES) in /home/a1346052/public_html/connection.php on line 7
Free Web Hosting Could not connect database please help me on this, Thanks
<?php
$mysql_hostname = "mysql13.000webhost.com";
$mysql_user = "a1346052";
$mysql_password = "*****";
$mysql_database = "a1346052_simple";
$prefix = "";
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database");
mysql_select_db($mysql_database, $bd) or die("Could not select database");
?
mysql_connect()
, It is deprecated, so please start usig mysqli or PDO ? – Prafulla Kumar Sahu