File manager - Edit - /home/custbahd/scorisinternationaljunior.com/admin/contact/mark/all.php
Back
<?php session_start(); include_once('../db/connection.php'); $sql = "UPDATE contact SET mark = '1'"; //use for MySQLi OOP if($conn->query($sql)){ $_SESSION['success'] = 'All messages marked as read successfully!'; } /////////////// //use for MySQLi Procedural // if(mysqli_query($conn, $sql)){ // $_SESSION['success'] = 'Member updated successfully'; // } /////////////// else{ $_SESSION['error'] = 'Something went wrong in marking all the messages as read!'; } header('location: ../'); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 2.32 |
proxy
|
phpinfo
|
Settings