Added a function to get a post from its ID.

svn path=/trunk/boinc/; revision=1738
This commit is contained in:
David Anderson 2003-07-18 22:44:17 +00:00
parent a48da07dfd
commit ffdc68c53c
1 changed files with 4 additions and 0 deletions

View File

@ -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));
}
?>