Location: PHPKode > scripts > WH Social > wh_social/framework/class/userstat_class.php
<?php

    function members_of_mine() {
        $inquiry = mysql_query("SELECT id FROM members");
        $total = intval(mysql_num_rows($inquiry));

        return $total;
        }

    function posts_of_mine() {
        $inquiry = mysql_query("SELECT id, author FROM discussions WHERE author = '" . (int)$_SESSION['id'] . "'");
        $total = intval(mysql_num_rows($inquiry));

        return $total;
        }

    function entries_of_mine() {
        $inquiry = mysql_query("SELECT id FROM guestbook WHERE id2 = '" . (int)$_SESSION['id'] . "'");
        $total = intval(mysql_num_rows($inquiry));

        return $total;
        }

    function adresses_of_mine() {
        $inquiry = mysql_query("SELECT id FROM addresses WHERE id2 = '" . (int)$_SESSION['id'] . "'");
        $total = intval(mysql_num_rows($inquiry));

        return $total;
        }

    function photos_of_mine() {
        $inquiry = mysql_query("SELECT id FROM photos WHERE id2 = '" . (int)$_SESSION['id'] . "'");
        $total = intval(mysql_num_rows($inquiry));

        return $total;
        }

?>
Return current item: WH Social