Advertisement
Guest User

Untitled

a guest
May 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2.  
  3. $host = "localhost";
  4. $user = "Hectorsito20";
  5. $password = "";
  6. $base = "usuarios";
  7.  
  8.  
  9. $con = @mysqli_connect($host, $user, $password, $base ) or die("Imposible conectar a la base de datos");
  10.  
  11. $sql = "INSERT INTO usuario(usuario, nombre, apellido, password, email, tel) VALUES('Hectorsito20','Hector Luis','De Jesus', 'Juanillo2020', 'info@localhost.com', '09309453435')";
  12.  
  13.  
  14. $resultado = mysqli_query($con, $sql);
  15.  
  16. echo "Sus datos son" . mysqli_fecth_array($resultado);
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement