I am unable to understand what is keeping this code to insert data into mysql.. I am continuesly having this error while trying to inset the code "Insert Problem: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (f_name) values ('')' at line 1" Please HELP. Please use a simplified language as I am quite new in this field.
<div class="order_form"><form action="buy.php" method="post">
<table width="330" border="0">
<tr>
<td colspan="2" height="30" bgcolor="#705a6b"><div align="center" class="style4">Order Foram
</div></td>
</tr>
<tr>
<td width="102" height="30">First Name* </td>
<td width="227" style="border:solid; border-color:#CC99FF; border-width:1px; "><input name="f_name" type="text" size="40" maxlength="100"/></td>
</tr>
<tr>
<td height="30"><input name="submit" type="submit"/></td>
</tr>
</table>
</form>
<?php
if (isset($_POST['submit']))
{
$f_name = mysql_real_escape_string($_POST['f_name']);
$que="insert into order (f_name) values ('$f_name')";
if (mysql_query($que))
{
echo "say something";
}
else {
die("Insert Problem: " . mysql_error());
}
}
?>
</div>