I am getting this error
(syntax error, unexpected '","' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in C:\xampp\htdocs\offline Storage\online form.php on line 14)
My code is...
<?php
if(isset($_POST['first'],$_POST['last'],$_POST['email'],$_POST['fdback']))
{
$conn=mysql_connect("localhost","root","root@localhost");
mysql_select_db("feedback");
$fname=$_POST['first'];
$lname=$_POST['last'];
$eml=$_POST['email'];
$fdb=$_POST['fdback'];
$result=mysql_query("insert into data values(".$fname",".$lname",".$eml",".$fdb")");
if($result)
{
echo "Data Inserted";
}
else
{
echo "Error"
}
};
?>