Skip to main content
error en el espacio
Origen Enlace
Dimas
  • 71
  • 6

puedes colocar todos los datos de la tabla? estas comparando con dos campos, deberias colocar algo así

$query = "SELECT i.description_item,i.quantity,u.name_unit,i.reorder_Level,
  i.target_Stock,l.name_location,i.commentt,io.quantity_s,io.registerTicket
  FROM inventory_list AS i
  INNER JOIN unit_mesurement AS u ON id_unit = fkUnit
  INNER JOIN location AS l on id_location = fkLocation
  INNER JOIN inventory_output as io on id_output = fkInventory
  WHERE io.registerDate >= '".$fecha1."' AND  io.registerDate <= ' "'".$fecha2."'";

puedes colocar todos los datos de la tabla? estas comparando con dos campos, deberias colocar algo así

$query = "SELECT i.description_item,i.quantity,u.name_unit,i.reorder_Level,
  i.target_Stock,l.name_location,i.commentt,io.quantity_s,io.registerTicket
  FROM inventory_list AS i
  INNER JOIN unit_mesurement AS u ON id_unit = fkUnit
  INNER JOIN location AS l on id_location = fkLocation
  INNER JOIN inventory_output as io on id_output = fkInventory
  WHERE io.registerDate >= '".$fecha1."' AND  io.registerDate <= ' ".$fecha2."'";

puedes colocar todos los datos de la tabla? estas comparando con dos campos, deberias colocar algo así

$query = "SELECT i.description_item,i.quantity,u.name_unit,i.reorder_Level,
  i.target_Stock,l.name_location,i.commentt,io.quantity_s,io.registerTicket
  FROM inventory_list AS i
  INNER JOIN unit_mesurement AS u ON id_unit = fkUnit
  INNER JOIN location AS l on id_location = fkLocation
  INNER JOIN inventory_output as io on id_output = fkInventory
  WHERE io.registerDate >= '".$fecha1."' AND  io.registerDate <= '".$fecha2."'";
Cambiar los campos por los requeridos a su tabla
Origen Enlace
Dimas
  • 71
  • 6

puedes colocar todos los datos de la tabla? estas comparando con dos campos, deberias colocar algo así

$query = "SELECT i.description_item,i.quantity,u.name_unit,i.reorder_Level,
  i.target_Stock,l.name_location,i.commentt,io.quantity_s,io.registerTicket
  FROM inventory_list AS i
  INNER JOIN unit_mesurement AS u ON id_unit = fkUnit
  INNER JOIN location AS l on id_location = fkLocation
  INNER JOIN inventory_output as io on id_output = fkInventory
  WHERE campo1io.registerDate >= '".$fecha1."' AND  campo1io.registerDate <= ' ".$fecha2."'";

puedes colocar todos los datos de la tabla? estas comparando con dos campos, deberias colocar algo así

$query = "SELECT i.description_item,i.quantity,u.name_unit,i.reorder_Level,
  i.target_Stock,l.name_location,i.commentt,io.quantity_s,io.registerTicket
  FROM inventory_list AS i
  INNER JOIN unit_mesurement AS u ON id_unit = fkUnit
  INNER JOIN location AS l on id_location = fkLocation
  INNER JOIN inventory_output as io on id_output = fkInventory
  WHERE campo1 >= '".$fecha1."' AND  campo1 <= ' ".$fecha2."'";

puedes colocar todos los datos de la tabla? estas comparando con dos campos, deberias colocar algo así

$query = "SELECT i.description_item,i.quantity,u.name_unit,i.reorder_Level,
  i.target_Stock,l.name_location,i.commentt,io.quantity_s,io.registerTicket
  FROM inventory_list AS i
  INNER JOIN unit_mesurement AS u ON id_unit = fkUnit
  INNER JOIN location AS l on id_location = fkLocation
  INNER JOIN inventory_output as io on id_output = fkInventory
  WHERE io.registerDate >= '".$fecha1."' AND  io.registerDate <= ' ".$fecha2."'";
Origen Enlace
Dimas
  • 71
  • 6

puedes colocar todos los datos de la tabla? estas comparando con dos campos, deberias colocar algo así

$query = "SELECT i.description_item,i.quantity,u.name_unit,i.reorder_Level,
  i.target_Stock,l.name_location,i.commentt,io.quantity_s,io.registerTicket
  FROM inventory_list AS i
  INNER JOIN unit_mesurement AS u ON id_unit = fkUnit
  INNER JOIN location AS l on id_location = fkLocation
  INNER JOIN inventory_output as io on id_output = fkInventory
  WHERE campo1 >= '".$fecha1."' AND  campo1 <= ' ".$fecha2."'";