Hai guys,
Is it possible if I want to show 2 different kind of image (
for example: online and offline gif) depends on the "status" of the user?
In my page, when the user login, it will set the user "status" (a field in my database) to be "Online" and when he logout, it will set the "status" to "Offline".
So when the user has logged in, I want to display the Online.
gif just beside the user name. Just like a toggle function in javascript.
Code:
if "status" == Online {
display "online.gif"
}
else
display "offline.gif"
If this things can be done in any other way other that javascript, please tell me,
Thanks....