MySQL Forums
Forum List  »  PHP

Re: MySQL, PHP Online user
Posted by: Peter Brawley
Date: July 29, 2017 05:12PM

Given columns username and logged_in in your users table, you would have authenticated the current user against that table and stored her username in a PHP $_SESSION[] variable, say $_SESSION'current_user'].

Then your on-offline radio button or checkbox for a given username is driven by a comparison with $_SESSION'current_user'].

Options: ReplyQuote

Written By
July 29, 2017 02:33PM
Re: MySQL, PHP Online user
July 29, 2017 05:12PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.