File manager - Edit - /home/custbahd/mediagepr.com/admin/brands/edit/index.php
Back
<?php session_start(); include_once('../db/connection.php'); if(isset($_POST['edit'])){ $id = $_POST['id']; $title = $_POST['title']; $link = $_POST['link']; $image = $_POST['image']; $sql = "UPDATE brands SET title = '$title', link = '$link', image = '$image' WHERE id = '$id'"; //use for MySQLi OOP if($conn->query($sql)){ $_SESSION['success'] = 'Brand updated successfully'; } else{ $_SESSION['error'] = 'Something went wrong in updating brand'; } } header('location: ../'); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 2.4 |
proxy
|
phpinfo
|
Settings