芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/public_html/panel/pages/product/stone.php
0) { echo '
Danger!
Stone already exists.
'; } else { $sqlSubject = mysqli_query ($cn, "insert into `tbl_stone` set `name`='$name', sort_order='$sort_order'"); if ($sqlSubject){ echo '
Success!
Stone Added Successfully.
'; } else { echo '
Danger!
Stone Not Added. Try Again.
'; } } } if(isset($_POST['edit'])) { $id = $_POST['id']; $name = $_POST['name']; $sort_order = $_POST['sort_order']; $sqlSubject = mysqli_query ($cn,"update `tbl_stone` SET `name`='$name', `sort_order`='$sort_order' where `id`='$id'"); if($sqlSubject) { echo '
Success!
Stone Update Successfully.
'; } else { echo '
Warning!
Stone Updated try again.
'; } } if(isset($_GET['edit_id'])) { $id = $_GET['edit_id']; $sql = mysqli_query($cn, "select * from `tbl_stone` where id='$id'"); $sqlData = mysqli_fetch_array ($sql); } ?>
Stone
Name
Sort Order
">Submit
Stone List
S.No.
Name
Sort Order
Action
Edit