Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetPostCount($UserID){
- $DB = GetDatabaseConnection();
- $Query = $DB->query("SELECT count(*),`authorid` FROM `posts_chats` WHERE `authorid` = " . $UserID . " AND `hidden` = 0 GROUP BY `authorid`");
- $Row = $Query->fetch_assoc();
- $Count = $Row['count(*)'];
- $DB->close();
- return $Count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement