hi
im working with two form
the first form is to insert cheek box into db
so the first code i write like this :
mysql_select_db("project", $con);
if(count($orders)>0)
{
foreach($orders as $key=>$order)
{
$query="INSERT INTO orders (ORDER_DESC) VALUES ('".$order."' )";
mysql_query($query) or die ('Error Updating the Database' . mysql_errno());
}
echo "Order Successfully Placed";
}
else
echo "No Orders";
and the second form is to update to same record for cheek box :
$ud_id = $_POST['ORDERING_DEPT'];
mysql_select_db("project", $con);
$query="UPDATE orders SET ORDERING_DEPT='$ud_id' WHERE ORDER_DESC='$orders'";
echo "Record Updated";
and after do this only shown in the first from is insert but the another form not work so anyhelp?