Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost";
- $user = "Hectorsito20";
- $password = "";
- $base = "usuarios";
- $con = @mysqli_connect($host, $user, $password, $base ) or die("Imposible conectar a la base de datos");
- $sql = "INSERT INTO usuario(usuario, nombre, apellido, password, email, tel) VALUES('Hectorsito20','Hector Luis','De Jesus', 'Juanillo2020', 'info@localhost.com', '09309453435')";
- $resultado = mysqli_query($con, $sql);
- echo "Sus datos son" . mysqli_fecth_array($resultado);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement