if ($submit):
$sql = "INSERT INTO my_table SET
id='$id',
category='$category',
subcategory='$subcategory'";
if (@mysql_query($sql1)) {
echo("<P><font size=-1 face=arial><b>Category Set entered into
Gallery database, now go fill in the important information.</P>");
} else {
echo("<P><font size=-1 face=arial><b>somethings messed up
with db.</P>" . mysql_error() . "</p>");
}
I'm making a form to insert new categories. The categories field is a ENUM. The ID and SUBCATEGORY fields are int and text fields.
What I want to do is be able to add new categories to my Category ENUM and Insert new data into the ID, Subcategory fields.
Does anyone know how to populate a ENUM set through a form using PHP / HTML? I can't seem to get the insert command right.
Any help would be greatly appreciated!
Thanks in advance
Rob