I wrote a update function when user logins and logouts, the code is
function update_status_offline($id) {
$id = $_SESSION['id'];
mysql_query("UPDATE users SET status = 0 WHERE id = $id"); }
And the same for online status, everything works great but when I removed
header('Location: ../');
It show me following error:
Warning: Missing argument 1 for update_status_offline() (...)
What could be wrong in the code ?