Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. // Create connection
  2. $conn = mysqli_connect($db_host, $db_user, $db_password, $db_name);
  3. // Check connection
  4. if (!$conn) {
  5.       die("Connection failed: " . mysqli_connect_error());
  6. }
  7.  
  8. //echo "Connected successfully";
  9.  
  10. $sql = "INSERT INTO `ingreso` (`apellido`,`nombre`,`email`,`celular`) VALUES('$apellido','$nombre','$email','$cel')";
  11. if (mysqli_query($conn, $sql)) {
  12.      header("Location: https://www.youtube.com/embed/kuqW9IcSN2U", true, 301);
  13. } else {
  14.       echo "Error: "; // . $sql . "<br>" . mysqli_error($conn);
  15. }
  16. mysqli_close($conn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement