File manager - Edit - /home/custbahd/public_html/admin/insert.php
Back
<?php include "dbConn.php"; // Using database connection file here if(isset($_POST['submit'])) { $clientname = $_POST['clientname']; $clientcontact = $_POST['clientcontact']; $businessname = $_POST['businessname']; $businesstype = $_POST['businesstype']; $clientorder = $_POST['clientorder']; $db = mysqli_connect("localhost", "custbahd_customassistname", "Rwatangabo1son", "custbahd_customassist"); $insert = mysqli_query($db,"INSERT INTO `caclient`(`clientname`, `clientcontact`, `businessname`, `businesstype`, `clientorder`) VALUES ('$clientname','$clientcontact','$businessname','$businesstype','$clientorder')"); if(!$insert) { echo mysqli_error(); } else { header('Location: home.php'); } } mysqli_close($db); // Close connection ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 0.48 |
proxy
|
phpinfo
|
Settings