note 56085 rejected from function.mysql-query by mazzanet

From: Date: Tue, 23 Aug 2005 07:28:14 +0000
Subject: note 56085 rejected from function.mysql-query by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94067@lists.php.net to get a copy of this message
Note Submitter: jack ---- Is it possible to have mysql_query NOT return a result? Or, put another way, is it possible to suppress the result and therefore just have the query executed without generating anything in return? My problem is caused by the fact that I'm trying to track when a particular user is logged into my website. When the user logs in, their online status is UPDATEd in the mySQL db. When the user leaves the page, or closes the browser, Javascript captures the onUnload event and submits a form to my php page that UPDATEs the db and registers the user as logged out. THe problem is that when the user navigates to another webpage, the php script returns a result and prevents their intended page from loading. I'd like to find a simple php script that can _just_ UPDATE the db and not return a result, allowing my user to go merrily on their way to another site.

« previous php.notes (#94067) next »