芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/public_html/panel/pages/city/city.php
Success!
City Page Added Successfully.
'; } else { echo '
Danger!
City Page Not Exist.
'; } } if(isset($_POST['edit'])) { $id = $_POST['id']; $parent_id = $_POST['parent_id']; $name = $_POST['name']; $sql = mysqli_query($cn, "select * from tbl_city where id='$id'"); $sqlData = mysqli_fetch_array($sql); $sqlSubject = mysqli_query ($cn,"update tbl_city SET parent_id='$parent_id',name='$name' where `id`='$id'"); if($sqlSubject) { echo '
Success!
City Page Update Successfully.
'; } else { echo '
Warrning!
Not Updated try again.
'; } } if(isset($_GET['edit_id'])) { $id = $_GET['edit_id']; $sql = mysqli_query($cn, "select * from tbl_city where id='$id'"); $sqlData = mysqli_fetch_array ($sql); } if(isset($_GET['delete_id'])) { $id = $_GET['delete_id']; $sql = mysqli_query($cn, "delete from tbl_city where id='$id'"); if($sql) { echo '
Success!
City Page Deleted Successfully.
'; } else { echo "error: " . $sql . "
" . mysqli_error($conn); } } ?>
Add City
State Page
Select State
>
City Name
">Submit
City List
Sr. No.
State Page Name
City Name
Action
Edit
|
Delete