Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once "conectarABD.php";
- $sql = "insert into probando1(id,nombre,apellido,edad) values (?,?,?,?)";
- $smt = $dbn->prepare($sql);
- $id = 1;
- $nombre = "Diego";
- $apellido = "Aguila";
- $edad =27;
- $smt->bindParam(1,$id); $smt->bindParam(2,$nombre);
- $smt->indParam(3,$apellido);
- $smt->bindParam(4,$edad);
- $smt->execute();
- echo "Added"; ?>
Add Comment
Please, Sign In to add comment