Save the file before committing

This commit is contained in:
dave 2010-01-21 20:33:01 +00:00
parent 997b54e854
commit 1f138e52ef

View File

@ -48,10 +48,7 @@ case 'load_row':
exit;
case 'delete':
$id = intval($_GET['id']);
error_("FIXME!");
exit;
$regid=$_GET['delete'];
$regid = intval($_GET['id']);
mysql_query("DELETE FROM registrations WHERE id='$regid' AND year='".$config['FAIRYEAR']."'");
mysql_query("DELETE FROM students WHERE registrations_id='$regid' AND year='".$config['FAIRYEAR']."'");
mysql_query("DELETE FROM projects WHERE registrations_id='$regid' AND year='".$config['FAIRYEAR']."'");