I'm following the PHP tutorial from Lynda. I got to the update part of the tutorial but my code won't execute the page simply reloads. I can't seem to figure it out.
$id = mysql_prep($_GET['subj']);
$menu_name = mysql_prep($_POST['menu_name']);
$position = mysql_prep($_POST['position']);
$visible = mysql_prep($_POST['visible']);
$query = "UPDATE 'widget_corp' . 'subjects' SET
menu_name = '{$menu_name}',
position = {$position},
visible = {$visible}
WHERE id = $id";