PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php if (isset($_POST["submit"])) { $fname = $_POST["fname"]; $lname = $_POST["lname"]; $region = $_POST["region"]; $address = $_POST["saddress"]; $apartment = $_POST["apartment"]; $town = $_POST["town"]; $state = $_POST["state"]; $zip = $_POST["zip"]; $phone = $_POST["phone"]; $email = $_POST["email"]; $cardno = $_POST["cardno"]; $password = $_POST["password"]; $sql = "INSERT INTO 'billingdetails'(fname,lname,region,address,apartment,town,state,zip,phone,email,cardno,password) VALUES('$fname','$lname','$region','$address','$apartment','$town','$state','$zip','$phone','$email','$cardno','$password')"; mysqli_query($con, $sql); $result = mysqli_query($con, $sql); if ($result) { echo"<script>alert('All details have been added successfully');</script>"; } else { echo"<script>alert('Please fill all fields.');</script>"; } } ?>
Show:  
Copy Clear