include 'include/connect.php'; include 'include/Form.php'; include '../admin/topmenu.php'; ?> if($_GET['actn']=="Delete") { mysql_query("delete from question where q_id='".$_GET['id']."'"); } $sql="select * from question order by sub_id"; if($sql) { $result=mysql_query($sql); print "
Manage Questions | Add new | ||||
---|---|---|---|---|
Subject "; print " | Question"; print " | Answer"; print " | Edit"; print " | Delete"; while($rs=mysql_fetch_object($result)) { $subj=fetch_me("subject","sub_name","sub_id",$rs->sub_id); if($sub!=$rs->sub_id) print " |
$subj | ||||
"; print " | ".stripslashes($rs->q_text)." | "; print "".stripslashes($rs->answer)." | "; print "q_id>Edit"; print " | q_id')>Delete"; print " |