Guest User

Untitled

a guest
Nov 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. include_once "conectarABD.php";
  3. $sql = "insert into probando1(id,nombre,apellido,edad) values (?,?,?,?)";
  4. $smt = $dbn->prepare($sql);
  5. $id = 1;
  6. $nombre = "Diego";
  7. $apellido = "Aguila";
  8. $edad =27;
  9. $smt->bindParam(1,$id); $smt->bindParam(2,$nombre);
  10. $smt->indParam(3,$apellido);
  11. $smt->bindParam(4,$edad);
  12. $smt->execute();
  13. echo "Added"; ?>
Add Comment
Please, Sign In to add comment