Hi ,
I just created a database and trying to add some records from a php form but firstly when i set the database name in to x10 server name ex:
mysql_connect(mysql-starka.x10hosting.com ,$username,$password);
It says access denied and then I changed the database name in to localhost ex: the url changes in to .php files url page is blank i can see DONE in the bottom of the page i mean the page loading status but the record is not in the database, cant add any records .
check this url : http://www.majaradio.com/majaradio.com/from.html
The php ::
<?
$username='azamkand_abc';
$password='abcdef';
$database='azamkand_dedicates';
$name=$_POST['first'];
$email=$_POST['email'];
$song=$_POST['song'];
$ded_for=$_POST['ded_for'];
$comm=$_POST['comm'];
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable ");
$query = "INSERT INTO dedications VALUES ('','$name','$email','$song','$ded_for','$comm')";
mysql_query($query);
mysql_close();
?>
I just created a database and trying to add some records from a php form but firstly when i set the database name in to x10 server name ex:
mysql_connect(mysql-starka.x10hosting.com ,$username,$password);
It says access denied and then I changed the database name in to localhost ex: the url changes in to .php files url page is blank i can see DONE in the bottom of the page i mean the page loading status but the record is not in the database, cant add any records .
check this url : http://www.majaradio.com/majaradio.com/from.html
The php ::
<?
$username='azamkand_abc';
$password='abcdef';
$database='azamkand_dedicates';
$name=$_POST['first'];
$email=$_POST['email'];
$song=$_POST['song'];
$ded_for=$_POST['ded_for'];
$comm=$_POST['comm'];
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable ");
$query = "INSERT INTO dedications VALUES ('','$name','$email','$song','$ded_for','$comm')";
mysql_query($query);
mysql_close();
?>