File manager - Edit - /home/custbahd/irungikitchen.com/admin/filters/recom/in/index.php
Back
<?php session_start(); include_once('../../../db/connection.php'); if(isset($_GET['id'])){ $sql = "UPDATE shop SET recom = '1' WHERE id = '".$_GET['id']."'"; //use for MySQLi OOP if($conn->query($sql)){ $_SESSION['success'] = 'Item added to recommended items successfully'; } /////////////// //use for MySQLi Procedural // if(mysqli_query($conn, $sql)){ // $_SESSION['success'] = 'Member updated successfully'; // } /////////////// else{ $_SESSION['error'] = 'Something went wrong while approving the recommended items process'; } } else{ $_SESSION['error'] = 'Select an item to add to recommended items first'; } header('location: ../../../'); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 0.62 |
proxy
|
phpinfo
|
Settings