[CODE]<?
mysql_connect(“localhost”, “chale”, “test”) or die(mysql_error());
mysql_select_db(“site”) or die(mysql_error());
mysql_query(“INSERT INTO ‘menu’ (‘category’,’item’,’itemdesc’,’price’,’lunch’,’dinner’) VALUES (‘$category’,’$item’,’$itemdesc’,’$price’,’$lunch’,’$dinner’)”);
$category = $_POST[‘category’];
$item = $_POST[‘item’];
$itemdesc = $_POST[‘itemdesc’];
$price = $_POST[‘price’];
$lunch = $_POST[‘lunch’];
$dinner = $_POST[‘dinner’];
$note = “<DIV>The item has been added as stated below to the menu.<br>If there is a mistake you can edit it by using the search links at the top of the page for each section of the menu.</DIV>”;
print “<!– ” . $_POST[‘formaction’] . ” –>
<HTML>
<HEAD>
<TITLE>Adding menu item</TITLE>
</HEAD>
<BODY>” . $note . ”
<br>
Item: ” . $item . ” <br>
Item description: ” . $itemdesc . ” <br>
Lunch item: ” . $lunch . ” <br>
Dinner item: ” . $dinner . ” <br>
Price: ” . $price . ” <br>
</BODY>
</HTML>”;
?>
Above is the php code I am using for submitting my form to a database… i am using form action php_self, since i am doing it all within one file. when I submit it prints out the info that was added on the screen but does not submit it to the DB…. any ideas why?