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.