I need help with a Very simple code for my job and i just can not get it to work i dont know very much about php but i’m trying?!?
Ok, i would like someone to write the php code for me or fix what i have to work right.
Here is the Error I am Getting:
Error: 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, machine)
This is my INPUT.PHP
<?php $con = mysql_connect("localhost","MyUsername","MYPASSWORD"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("MY DATABASE", $con); $sql="INSERT INTO test (partnum, partname, shelf, bin, instock, order, machine) VALUES ('$_POST[partnum]','$_POST[partname]','$_POST[shelf]','$_POST[bin]','$_POST[instock]','$_POST[order]','$_POST[machine]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "You Have Suceccfully Added a New Part"; mysql_close($con) ?>#HERE IS MY FORM PAGE
Form Input DataForm Input Employees Data | ||||||||||||||||||
|
basically what i want is a simple code that will input a part number, part name, Shelf number, Bin Number, Cost, Stock Amount, Amount In Stock, Machine/model that is goes to on a searchable display page
So far this is what i have:
i need a search and a way to edit each of them so i can remove the table or edit the info on a certain table and add info
Thanks