From ffdc68c53cf9d05855c4fa6a62dae6cda7324bc3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 18 Jul 2003 22:44:17 +0000 Subject: [PATCH] Added a function to get a post from its ID. svn path=/trunk/boinc/; revision=1738 --- html/forum/forum.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/forum/forum.inc b/html/forum/forum.inc index b946a6b418..9dd43fd753 100644 --- a/html/forum/forum.inc +++ b/html/forum/forum.inc @@ -202,4 +202,8 @@ function getThread($threadID) { return getNextThread(sql_query($sql)); } +function getPost($postID) { + $sql = "SELECT * FROM post WHERE id = ".$postID; + return getNextPost(sql_query($sql)); +} ?> \ No newline at end of file