Guest User

Untitled

a guest
Nov 17th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. $sql="insert into productos (idProducto,Nombre_Producto, precio, Detalles, id_Tipo_Moneda,
  2. id_Categoria, Stock, idEstadoEliminacion, CantidadAlarma )values(:codProd,:nombre, :pre, :det, :tmoneda,
  3. :cat, :stock, :estelim, :Alarma)";
  4.  
  5. $sentencia = $con->prepare($sql);
  6. $sentencia-> bindParam(':codProd', $codProd, PDO::PARAM_STR);
  7. $sentencia-> bindParam(':nombre', $nom, PDO::PARAM_STR);
  8. $sentencia-> bindParam(':pre', $pre, PDO::PARAM_INT);
  9. $sentencia-> bindParam(':det', $det, PDO::PARAM_STR);
  10. $sentencia-> bindParam(':tmoneda', $tMoneda, PDO::PARAM_STR);
  11. $sentencia-> bindParam(':cat', $cat, PDO::PARAM_INT);
  12. $sentencia-> bindParam(':stock', $stock, PDO::PARAM_INT);
  13. $sentencia-> bindParam(':estelim', $estel, PDO::PARAM_INT);
  14. $sentencia-> bindParam(':Alarma', $Alarma, PDO::PARAM_INT);
Add Comment
Please, Sign In to add comment