Location: PHPKode > scripts > WH Social > wh_social/modules/user.inc.php
<?php

    $sql = "SELECT
                id,
                name,
                visits
            FROM
                members
            WHERE
                id = " . (int)$_SESSION['id'];
    
    $result = mysql_query($sql) OR die(mysql_error());

    while($row = mysql_fetch_assoc($result)) {
    echo '<span class="user_name">' . htmlentities($row['name'], ENT_QUOTES) . '</span><br><br>
    <span class="total_visits">' . $lang['this_is_your'] . ' ' . (int)$row['visits'] . '. ' . $lang['visit'] . '</span>';
    }

?>
Return current item: WH Social