} elseif($day_difference >= ($admin_info[inactivity] * 86400) & $admin_info[inactivity] != 0) { $status = "<font color='#FF0000'>Inactive</font>"; } else { $status = "Active";
how can i change this to show.. instead in inactive.. but how many days since the last log in? like 14 days.. instead of inactive?
Well its maths to work out how many days
The way i do it is quite simple
((currenttime - lastactive)/60/60/24)
of course you can probably just make it 86400 instead of 60/60/24
dont think im following.. how do i plug that into the code?