Direktori : /home/rizant5/public_html_old/admin/ |
Current File : /home/rizant5/public_html_old/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'"); ?>