diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2015-07-01 02:28:16 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2015-07-01 02:28:16 +0000 |
| commit | 37181c4e7811eedaf47161ec8533052fdac18d89 (patch) | |
| tree | 8088d859b396dbb600269f9613c4df64f87614e4 /nutrient_search.php | |
| parent | 97bc3664869615aa66611cb3788f8e6e15266e53 (diff) | |
Remove dependence on ADOdb and use PHP PDO instead.
Diffstat (limited to 'nutrient_search.php')
| -rw-r--r-- | nutrient_search.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nutrient_search.php b/nutrient_search.php index 21531b4..64ddb2d 100644 --- a/nutrient_search.php +++ b/nutrient_search.php @@ -38,7 +38,8 @@ $smarty->assign("count", $_GET['count']); # execute query $sql = sprintf (" - SELECT foodDescs.ndb_no, foodDescs.long_desc, foodDescs.comname, %s AS foodDesc, + SELECT foodDescs.ndb_no, foodDescs.long_desc, foodDescs.comname, + CONCAT(foodDescs.long_desc, foodDescs.comname) AS foodDesc, nutrientData.nutr_val, nutrientDefs.nutrdesc, nutrientDefs.units FROM foodDescs LEFT JOIN nutrientData ON foodDescs.ndb_no = nutrientData.ndb_no @@ -47,7 +48,6 @@ $sql = sprintf (" WHERE nutrientDefs.nutr_no = '%s' ORDER BY nutrientData.nutr_val DESC ", - $db->_dbConn->Concat("foodDescs.long_desc", "', '", "foodDescs.comname"), $_GET['nutrient'] ); |
