summaryrefslogtreecommitdiff
path: root/food_quantity.php
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2015-07-01 02:28:16 +0000
committerNathan Kinkade <nath@nkinka.de>2015-07-01 02:28:16 +0000
commit37181c4e7811eedaf47161ec8533052fdac18d89 (patch)
tree8088d859b396dbb600269f9613c4df64f87614e4 /food_quantity.php
parent97bc3664869615aa66611cb3788f8e6e15266e53 (diff)
Remove dependence on ADOdb and use PHP PDO instead.
Diffstat (limited to 'food_quantity.php')
-rw-r--r--food_quantity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/food_quantity.php b/food_quantity.php
index b938745..e93c17e 100644
--- a/food_quantity.php
+++ b/food_quantity.php
@@ -25,13 +25,13 @@ if ( isset($_REQUEST['food']) ) {
# get the selected food and quantities from the database
$sql = sprintf ("
- SELECT foodDescs.sciname, %s AS foodDesc, weights.*
+ SELECT foodDescs.sciname, CONCAT(foodDescs.long_desc, foodDescs.comname)
+ AS foodDesc, weights.*
FROM foodDescs LEFT JOIN weights
ON foodDescs.ndb_no = weights.ndb_no
WHERE foodDescs.ndb_no = '%s'
AND weights.usda_status = 'active'
",
- $db->_dbConn->Concat("foodDescs.long_desc", "', '", "foodDescs.comname"),
$food
);
$db->Select($sql);