Which site you are talking about. Is that you trying to implement some pre-made script available online and got stucked up somewhere
I am developing my own website I want to listout online members and their names on webpage. I allow only registered user to enter into the website so only registered users can access my website
I am developing my own website I want to listout online members and their names on webpage. I allow only registered user to enter into the website so only registered users can access my website
create another column named 'Status' in the usermaster table of your database and while the user logs in set the status to 'active'.So on your webpage you can get the count of all the online or logged in user as
"select count(*) from usermaster where status='Active' "
Similary set the status to inactive while logging off from the website
0
diafol
Just to jump in there - if user doesn't log off - permanently active. Perhaps the status should be changed to 'last impression' field, so that users only active if opened new page in say last 20 minutes, regardless of whether user is logged in. There are more sophisticated methods of course, but this seems reasonably lightweight.
APLX is a very complete implementation of the APL programming language from MicroAPL. The company stopped producing it in 2016 and it has been taken over by Dyalog. While Dyalog ...
I try to create a simple OOP PHP that shows an error:
class_lib.php
<?php
class person {
var $name;
function __constructor($person_name){
echo "Initialize class";
}
function set_name($new_name){
$this->name($new_name);
} ...