Sometimes it's because your emulator went off randomly or something so it's stuck on what the last state the emulator was on.
If you turn on your emulator it should change to offline or online depending if you're on or not.
If that is not your problem, I can't help you - Sorry!
the php on staff.php is probably messed up, it might not even be pulling data from the db, make it so when you're online status = 1 it displays the "online image" if not then make it display offline