File manager - Edit - /home/custbahd/public_html/assist.php
Back
<?php if(!isset($_POST["submit"])) { $item = $_POST["item"]; $specification = $_POST["specification"]; $quantity = $_POST["quantity"]; $name = $_POST["name"]; $email = $_POST["email"]; $phone = $_POST["phone"]; $etime = $_POST["etime"]; $edate = $_POST["edate"]; $location = $_POST["location"]; $payment = $_POST["payment"]; $conn = mysqli_connect("localhost", "root", "", "custom") or die("Connection Error: " . mysqli_error($conn)); mysqli_query($conn, "INSERT INTO orders (item, specification, quantity, name, email, phone, etime, edate, location, payment) VALUES ('" . $item. "','" . $specification. "','" . $quantity. "','" . $name. "','" . $email. "', '" . $phone. "','" . $etime. "','" . $edate. "','" . $location. "','" . $payment. "')"); $id = mysqli_insert_id($conn); //if(!empty($insert_id)) { $message = "Your order has been received. Thank You!"; $type = "success"; //} } require_once "index.html"; ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 0.49 |
proxy
|
phpinfo
|
Settings