Mercurial > hg > extraction-interface
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 50:3e42a63de0ea | 51:840cdb52f476 |
|---|---|
| 71 } | 71 } |
| 72 return $result; | 72 return $result; |
| 73 } | 73 } |
| 74 | 74 |
| 75 protected function GetSectionsByID($section_id) { | 75 protected function GetSectionsByID($section_id) { |
| 76 $query = sprintf("SELECT * FROM `sections` WHERE `id`=\"%s\"", $section_id); | 76 $query = sprintf("SELECT * FROM `sections_index` WHERE `id`=\"%s\"", $section_id); |
| 77 $result = mysql_query($query); | 77 $result = mysql_query($query); |
| 78 if (!$result){ | 78 if (!$result){ |
| 79 echo json_encode("Failed during selecting sections table"); | 79 echo json_encode("Failed during selecting sections_index table"); |
| 80 return; | 80 return; |
| 81 } | 81 } |
| 82 return $result; | 82 return $result; |
| 83 } | 83 } |
| 84 | 84 |
