Thanks in advance!
Is there any one to help me past one weak i am trying continually but the answer is
Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘xxxxxxxxx_xxx’@‘xxx.xxx.xx.xxx’ (using password: YES) in /home/xxxxxxx/public_html/xxxxxxxxxxxx/submit-dsc.php on line 9
Unable to connect to MySQL
but with this same code i could connect in localhost only i will have to change $server option
on my cpanel i twice a time i dropped and rebuild the database with the same user name password which i am using in local
the code which i am using
<?php
if(count($_POST) > 0)
{
// code for database connection string
$username = “xxxxxxxx_xxxx”;
$password = “xxxxxxxxxxxxxx”;
$server = “xxxxxxxxxxxxxxxx.xxx”;
$dbh=mysql_connect($server,$username,$password)
or die(“Unable to connect to MySQL”);
$selected = mysql_select_db(“xxxxxxxxxxx”,$dbh)
or die(“Could not select xxxxxxxxxxx”);