Advertisement
StefanBashkir

Untitled

Sep 28th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1.     function GetPostCount($UserID){
  2.         $DB = GetDatabaseConnection();
  3.         $Query = $DB->query("SELECT count(*),`authorid` FROM `posts_chats` WHERE `authorid` = " . $UserID . " AND `hidden` = 0 GROUP BY `authorid`");
  4.         $Row = $Query->fetch_assoc();
  5.         $Count = $Row['count(*)'];
  6.         $DB->close();
  7.         return $Count;
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement