Mercurial > hg > extraction-interface
diff 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 |
line wrap: on
line diff
--- a/develop/classes/basemodel.php Tue Feb 10 16:20:29 2015 +0100 +++ b/develop/classes/basemodel.php Wed Feb 11 12:33:59 2015 +0100 @@ -98,6 +98,14 @@ return $result; } + protected function GetTopicByID($topic_id) { + $query = sprintf("SELECT * FROM `topics` WHERE id=\"%s\"", $topic_id); + $result = mysql_query($query); + if (!$result) { + return json_encode("Failed during selecting topics table."); + } + return $result; + } }