<?php
$sql_apr = " SELECT SUM ( meter * minute ) FROM table";
$rs_apr = @mysql_query($sql_apr);
$total_apr = @mysql_fetch_array($rs_apr);
$try4 = $total_apr['SUM(meter * minute'];
while ($rs_t = @mysql_fetch_array($rs_t)) {
$minute = '';
$sql_t = "SELECT DATEDIFF(MINUTE,'e_date e_time','s_date s_time') AS minute";
$rs_t = @mysql_query($sql_t);
$minute = $rs_t['minute'];
}
?>