File manager - Edit - /home/custbahd/public_html/tests/admin panels/admin3/controller/addCatController.php
Back
<?php include_once "../config/dbconnect.php"; if(isset($_POST['upload'])) { $catname = $_POST['c_name']; $insert = mysqli_query($conn,"INSERT INTO category (category_name) VALUES ('$catname')"); if(!$insert) { echo mysqli_error($conn); header("Location: ../dashboard.php?category=error"); } else { echo "Records added successfully."; header("Location: ../dashboard.php?category=success"); } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 2.6 |
proxy
|
phpinfo
|
Settings