อันนี้คือ ลบ user ออกจาก table user online file logout.php
session_start();
include('../../inc/connect.php');
$userID= $_GET['id'];
mysql_query("DELETE FROM online WHERE userID='$userID'")or die("Delete Session =".mysql_error());
mysql_query("UPDATE user SET login_status=0 WHERE id='$userID'")or die("Delete Session =".mysql_error());
mysql_close();
echo "<script>history.back();</script>";