Assigning unique value to checkbox
Posted: Mon Jun 16, 2003 2:41 pm
I would like to assign a unique value to a checkbox each time a new entry is submitted to the database, so that I can have management check a checkbox making a table visible on the frontend page
How would I go about doing this?
Code: Select all
if($value == 1) {
$query = "INSERT INTO listing (
jcode,
designation,
responsibilities,
qualifications,
cname, cmail,
posted,
fk_department,
fk_location,
fk_salary)
VALUES (
'$jcode',
'$dsg',
'$rsp',
'$qlf',
'$cname',
'$cmail',
NOW(),
'$dpt',
'$loc',
'$sal')";
} else {
echo "User submitted the wrong information";
}