--- a/displayAmendments.php +++ b/displayAmendments.php @@ -1,11 +1,17 @@ 0) a". +$query = "select CNID, description, value, pvalue, (value - pvalue) as diff from contractnotice, (SELECT CNID as cn, childCN as ccn, value as pvalue FROM contractnotice where childCN is not null) a". " where ".$agencyQ.$yearQ."CNID = ccn AND (value - pvalue) <> 0 order by diff DESC"; $result = mysql_query($query); -echo $query; -echo "
Contract | +Original Value | +Amended Value | +Difference | +
---|