Poll

Simple?

yes
no

Author Topic: [MOD] Simple "how many users do we have" modiffication  (Read 3059 times)

0 Members and 1 Guest are viewing this topic.

Offline beeeeer

  • Pre-Newbie
  • Posts: 1
    • View Profile
[MOD] Simple "how many users do we have" modiffication
« on: June 04, 2011, 03:03:03 PM »
Hi,

i made simple modification.
" Count users "

Create a file count.php and paste code:
Code: [Select]

<?php
$link 
mysql_connect ('localhost','database_username','database_password');
mysql_select_db('database'$link);

$result mysql_query('SELECT * FROM 4images_users'$link); 
$num_rows mysql_num_rows($result) -2

echo 
"We have $num_rows registered users\n";

?>



step2:
open whos_online.html and paste
Code: [Select]
<?php include "includes/count.php"?>
          </td>

upload it
count.php to catalog includes
and
whos_online.html to templates/your_style

 

Post your comments here