AND trans.tran_date=".db_escape($date);
$result = db_query($sql,"No transactions were returned");
$row = db_fetch_row($result);
AND trans.tran_date=".db_escape($date);
$result = db_query($sql,"No transactions were returned");
$row = db_fetch_row($result);