1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
$sum_polys_query = ("SELECT type_polys, polys FROM 1master_scan_sheet WHERE property_name = '".$res['PROPERTY_NAME']."' AND active='Yes' GROUP BY type_polys"); $result = mysql_query($sum_polys_query) or die(mysql_error()); while ($row9 = mysql_fetch_array($result)){ $poly_cost_query = mysql_query("SELECT * FROM 1plot_info WHERE plot_type = '".$row9['type_polys']."'"); while ($row10 = mysql_fetch_array($poly_cost_query)){ $mult_result = ($row10['plot_price']*$row9['polys']); echo $row10['plot_price'] . " x " . $row9['polys'] . " = " . ($row10['plot_price']*$row9['polys'])."<br>" ; } }