Guest User

Untitled

a guest
Feb 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public function checkBagModel($datos, $tabla){
  2. $stmt = Conexion::conectar() -> prepare("SELECT caja FROM $tabla WHERE bolsa=:bag AND lote=:lotee");
  3. $stmt -> bindParam(":bag", $datos["cb"], PDO::PARAM_INT);
  4. $stmt -> bindParam(":lotee", $datos["lT"], PDO::PARAM_INT);
  5. $stmt->execute();
  6. $stmt -> fetch();
  7. if($stmt->rowCount()>0){
  8. return "existe";
  9. }else{
  10. return "no";
  11. }
  12. $stmt->close();
  13. }
Add Comment
Please, Sign In to add comment