芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/public_html/panel/pages/pincode/pincode.php
Success!
City Page Added Successfully.
'; } else { echo '
Danger!
City Page Not Exist.
'; } } if(isset($_POST['edit'])) { $id = $_POST['id']; $pincode = $_POST['pincode']; $state_id = $_POST['state_id']; $city_id = $_POST['city_id']; $sql = mysqli_query($cn, "select * from tbl_pincode where id='$id'"); $sqlData = mysqli_fetch_array($sql); $sqlSubject = mysqli_query ($cn,"update tbl_pincode SET pincode='$pincode',state_id='$state_id',city_id='$city_id' 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_pincode where id='$id'"); $sqlData = mysqli_fetch_array ($sql); } if(isset($_GET['delete_id'])) { $id = $_GET['delete_id']; $sql = mysqli_query($cn, "delete from tbl_pincode where id='$id'"); if($sql) { echo '
Success!
City Page Deleted Successfully.
'; } else { echo "error: " . $sql . "
" . mysqli_error($conn); } } ?>
Add Pincode
Pincode
State Page
Select State
>
City Page
Select City
>
">Submit
City List
Sr. No.
Pincode
State Page Name
City Name
Action
Edit
|
Delete