From: Maxious Date: Wed, 05 Sep 2012 12:16:11 +0000 Subject: Merge branch 'master' of ssh://apples.lambdacomplex.org/git/contractdashboard X-Git-Url: http://maxious.lambdacomplex.org/git/?p=contractdashboard.git&a=commitdiff&h=d6b53aab567b2945fa29fb1ffda83ed0abcd032f --- Merge branch 'master' of ssh://apples.lambdacomplex.org/git/contractdashboard --- --- a/displayConfidentialities.php +++ b/displayConfidentialities.php @@ -10,9 +10,9 @@ */ include_header("Confidentialities"); -$query = "SELECT value, procurementMethod -FROM `contractnotice` -GROUP BY procurementMethod "; +$query = 'SELECT SUM(value) as value, "procurementMethod" +FROM contractnotice +GROUP BY "procurementMethod" '; $query = $conn->prepare($query); $query->execute(); --- a/displayConsultancies.php +++ b/displayConsultancies.php @@ -10,9 +10,9 @@ */ include_header("Consultancies"); -$query = "SELECT value, procurementMethod -FROM `contractnotice` -GROUP BY procurementMethod "; +$query = 'SELECT SUM(value) as value, "procurementMethod" +FROM contractnotice +GROUP BY "procurementMethod" '; $query = $conn->prepare($query); --- a/displayProcurementMethod.php +++ b/displayProcurementMethod.php @@ -10,10 +10,10 @@ */ include_header("Procurement Methods"); -$query = "SELECT SUM(value) as value, procurementMethod -FROM `contractnotice` -WHERE childCN is null -GROUP BY procurementMethod "; +$query = 'SELECT SUM(value) as value, "procurementMethod" +FROM contractnotice +WHERE "childCN" is null +GROUP BY "procurementMethod"'; $query = $conn->prepare($query); $query->execute();