Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="localhost";
- $database="bwclients";
- $username="Paul";
- $password="a124610a";
- $name=$_POST['name'];
- $bday = $_POST['m'] . "/" .$_POST['d'] . "/" . $_POST['y'];
- $phone=$_POST['phone'];
- $address=$_POST['address'];
- $email=$_POST['email'];
- $gender=$_POST['gender'];
- $kids=$_POST['kids'];
- $con = mysql_connect($host,$username,$password);
- mysql_select_db($database,$con) or die( "Unable to select database");
- $query = "INSERT INTO clients (id,Name,Bday,Phone,Address,Email,Gender,Children) VALUES (NULL,'$name','$bday','$phone','$address','$email','$gender','$kids')";
- mysql_query($query,$con) or die(mysql_error($con));
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement