0){ while($row = mysqli_fetch_array($products_sql)){ $products[] = $row; } $json_products = json_encode($products); } ?>