Direktori : /home/rizant5/public_html-1210/admin/ |
Current File : /home/rizant5/public_html-1210/admin/update-answer.php |
<?php require_once("../config.php"); $chapter_id=$_POST['chapter_id']; $text=$_POST['answer']; $queid=$_POST['id']; $conn->exec("insert into answers (que_id,datetime,text) values ('$queid',NOW(),'$text')"); $conn->exec("update question SET check_status='1' where que_id='$queid'"); ?>