I am using the following code but it does not work for me. I'm trying to bring information from 3 tables:
$result = mysqli_query($con,"SELECT a.ID,a.proveedor,a.peso,a.fecha,b.ENTRADA,b.cajas,b.peso,b.pagado,c.ENTRADA,c.monto FROM a entradas b separacion c pagos WHERE b.ENTRADA=a.id AND c.ENTRADA=a.id") or mysqli_error($con);
while ($row = $result->fetch_assoc()) {
$arr[] = $row;
}
The problem is that I run it from PostMan and it marks me:
<b>Fatal error</b>: Call to a member function fetch_assoc() on a non-object in <linea de error> while ($row = $result->fetch_assoc()) {