芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/www/panel/pages/page/testimonials.php
Success!
Testimonial Page Added Successfully.
'; } else { echo '
Danger!
Testimonial Page Not Added.
'; } } if(isset($_POST['edit'])) { $id = $_POST['edit_id']; $description = mysqli_real_escape_string($cn,$_POST['description']); $date = date('Y-m-d'); $name = $_POST['name']; $designation = $_POST['designation']; $image = $_FILES['image']['name']; $sql = mysqli_query($cn, "select * from tbl_testimonial where id='$id'"); $sqlData = mysqli_fetch_array($sql); if(!empty($image)) { move_uploaded_file($_FILES['image']['tmp_name'],'../testimonial/'.$image); } else { $image = $sqlData['image']; } $sqlSubject = mysqli_query ($cn,"update tbl_testimonial SET description='$description',date='$date',name='$name',designation='$designation', image='$image' where `id`='$id'"); if($sqlSubject) { echo '
Success!
Testimonial 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_testimonial where id='$id'"); $sqlData = mysqli_fetch_array ($sql); } if(isset($_GET['delete_id'])) { $id = $_GET['delete_id']; $sql = mysqli_query($cn, "delete from tbl_testimonial where id='$id'"); if($sql) { echo '
Success!
Testimonial Page Deleted Successfully.
'; } else { echo "error: " . $sql . "
" . mysqli_error($conn); } } ?>
Testimonials
Testimonials Description
</textarea>
Person Name
Designation
Testimonial Image
required >
Size must 235X54
">Submit
Order List
Sr. No.
Image
Person Name
Designation
Date
Description
Action
Publish |
Edit
|
Delete