D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
epksuofuukz9
/
www
/
admin
/
php
/
Filename :
edit_section.php
back
Copy
<?php include("../includes/functions.php"); $the_id=$_POST['section_id']; $lesson=$_POST['lesson']; $description=escape($_POST['description']); $course_id=$_POST['course_id']; $update="UPDATE `section` SET `section_lesson`='$lesson',`section_description`='$description' WHERE `section_id`='$the_id'"; $run_update=query($update); if($run_update) { echo "<script>alert('Section has been updated');</script>"; echo "<script>window.open('../edit_section.php?edit=$course_id','_self');</script>"; } ?>