Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sql="insert into productos (idProducto,Nombre_Producto, precio, Detalles, id_Tipo_Moneda,
- id_Categoria, Stock, idEstadoEliminacion, CantidadAlarma )values(:codProd,:nombre, :pre, :det, :tmoneda,
- :cat, :stock, :estelim, :Alarma)";
- $sentencia = $con->prepare($sql);
- $sentencia-> bindParam(':codProd', $codProd, PDO::PARAM_STR);
- $sentencia-> bindParam(':nombre', $nom, PDO::PARAM_STR);
- $sentencia-> bindParam(':pre', $pre, PDO::PARAM_INT);
- $sentencia-> bindParam(':det', $det, PDO::PARAM_STR);
- $sentencia-> bindParam(':tmoneda', $tMoneda, PDO::PARAM_STR);
- $sentencia-> bindParam(':cat', $cat, PDO::PARAM_INT);
- $sentencia-> bindParam(':stock', $stock, PDO::PARAM_INT);
- $sentencia-> bindParam(':estelim', $estel, PDO::PARAM_INT);
- $sentencia-> bindParam(':Alarma', $Alarma, PDO::PARAM_INT);
Add Comment
Please, Sign In to add comment