prepare("INSERT INTO testimonials (customer_name, content, rating, event_type, sort_order, status) VALUES (?,?,?,?,?,?)"); $stmt->bind_param("ssisii", $name, $content, $rating, $event_type, $sort, $status); } else { $id = intval($_POST['id']); $stmt = $conn->prepare("UPDATE testimonials SET customer_name=?, content=?, rating=?, event_type=?, sort_order=?, status=? WHERE id=?"); $stmt->bind_param("ssisiii", $name, $content, $rating, $event_type, $sort, $status, $id); } $stmt->execute(); $msg = '
| ID | Name | Rating | Event Type | Status | Action |
|---|---|---|---|---|---|
| = $t['id'] ?> | = htmlspecialchars($t['customer_name']) ?> | = $t['event_type'] ?: '-' ?> | = $t['status']?'Active':'Hidden' ?> |