1
I'd like to add a block which displays each users personal info like how many newsstories someone wrote, the number of images uploaded into an album and so on. This means if member A logs in, he should see his personal numbers / stats.
I've made a list with all totals (total number of newsstories, total number of images...) with this script:
echo"ONLINE ";
$sql1 = "SELECT * FROM ***_online";
$query1 = mysql_query($sql1);
$num_rows = mysql_num_rows($query1);
echo "- " .$num_rows ." user(s) are NOW online";
The *** in $sql1 = "SELECT * FROM ***_online"; stands for the tableprefix name.
I'm a total noob to PHP so my question is: can someone please help me to a script which displays the personal stats please?
- To Explore and Discover -