Mercurial > hg > extraction-interface
comparison develop/classes/basemodel.php @ 11:3d6fba07bfbd
implemented for topic tag. tagging with topic tag (main tag) indicating each row when export to html.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 11 Feb 2015 12:33:59 +0100 |
parents | 54a235d43694 |
children | e82ca7375e93 |
comparison
equal
deleted
inserted
replaced
10:54a235d43694 | 11:3d6fba07bfbd |
---|---|
96 return json_encode("Failed during selecting topics table."); | 96 return json_encode("Failed during selecting topics table."); |
97 } | 97 } |
98 return $result; | 98 return $result; |
99 } | 99 } |
100 | 100 |
101 protected function GetTopicByID($topic_id) { | |
102 $query = sprintf("SELECT * FROM `topics` WHERE id=\"%s\"", $topic_id); | |
103 $result = mysql_query($query); | |
104 if (!$result) { | |
105 return json_encode("Failed during selecting topics table."); | |
106 } | |
107 return $result; | |
108 } | |
101 | 109 |
102 | 110 |
103 } | 111 } |
104 | 112 |
105 ?> | 113 ?> |