Mercurial > hg > extraction-interface
diff classes/basemodel.php @ 51:840cdb52f476 extractapp
add book_meta into file
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 26 Mar 2015 15:42:50 +0100 |
parents | 886f43b26ee2 |
children | 3ada9334ebfc |
line wrap: on
line diff
--- a/classes/basemodel.php Thu Mar 19 09:53:26 2015 +0100 +++ b/classes/basemodel.php Thu Mar 26 15:42:50 2015 +0100 @@ -73,10 +73,10 @@ } protected function GetSectionsByID($section_id) { - $query = sprintf("SELECT * FROM `sections` WHERE `id`=\"%s\"", $section_id); + $query = sprintf("SELECT * FROM `sections_index` WHERE `id`=\"%s\"", $section_id); $result = mysql_query($query); if (!$result){ - echo json_encode("Failed during selecting sections table"); + echo json_encode("Failed during selecting sections_index table"); return; } return $result;