Ok, Basically im doing something like a 'How Many Guests Online'
And ive got a
But it seems to do the unload function as soon as i load.PHP Code:<body onUnload="<? unload(); ?>">
</body>
Anyone know whats up
Unload Function Code
Thanks in advance.PHP Code:<?php
function unload()
{
$ip = $_SERVER['REMOTE_ADDR'];
$sql = mysql_query("delete from onl_online where ip = '$ip'");
}
?>





Reply With Quote



