I have big problem to error php code. Please help me to solve it.
My php code is-
<?php
$fusername=$_POST["User Name"];
$ffullname=$_POST["full Name"];
$femail=$_POST["E-mail"];
$fpassword=$_POST["password"];
$con=mysql_connect("localhost","root","");
if (!$con)
{
die('could not connect:' .mysql_error())
}
mysql_select_db("alhera", $con);
mysql_query("INSERT INTO form('user name', 'full name', 'e-mail', 'password')
VALUES('$fusername','$ffullname','$femail','$fpassword')");
echo "Your record successfully added";
mysql_close($con);
?>
My php code is-
<?php
$fusername=$_POST["User Name"];
$ffullname=$_POST["full Name"];
$femail=$_POST["E-mail"];
$fpassword=$_POST["password"];
$con=mysql_connect("localhost","root","");
if (!$con)
{
die('could not connect:' .mysql_error())
}
mysql_select_db("alhera", $con);
mysql_query("INSERT INTO form('user name', 'full name', 'e-mail', 'password')
VALUES('$fusername','$ffullname','$femail','$fpassword')");
echo "Your record successfully added";
mysql_close($con);
?>