Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysql_connect("localhost","signsplus","101010");
- if (!$con) {
- die('Could not connect: ' . mysql_error());
- };
- //select db
- mysql_select_db("jobs", $con);
- //client dtails
- $nombre = $_POST['cliente'];
- $phone = $_POST['phone'];
- $email = $_POST['email'];
- $sp = $_POST['sp'];
- //order date
- $entrada = $_POST['entrada'];
- $entrega = $_POST['entrega'];
- //order details
- $width = $_POST['medidaX'];
- $height = $_POST['medidaY'];
- $arte = $_POST['Si'] || $_POST['No'];
- $terminaciones = $_POST['terminaciones'];
- $descripcion = $_POST['descripcion'];
- //car wraps
- $marca = $_POST['marca'];
- $modelo = $_POST['modelo'];
- $material = $_POST['material'];
- //extra details
- $rush = '$rush';
- $status = '$status';
- $cq = "INSERT INTO Cliente (Nombre, Telefono, Email) VALUES (".$nombre.",".$phone.",".$email.",".$sp.")";
- $dq = "INSERT INTO Fecha (Entrada, Entrega) VALUES (".$entrada.",".$entrega.")";
- $iq = "INSERT INTO Descripcion (MedidaX, MedidaY) VALUES (".$width.",".$height.",".$arte.",".$terminaciones.",".$descripcion.")";
- $ce = mysql_query($cq);
- $de = mysql_query($dq);
- $ie = mysql_query($iq);
- list( $ce, $de, $ie) = $inserts;
- mysql_query($inserts);
- mysql_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment