Re: Who's logged in from the browser?
| From: | CPT John W. Holmes | Date: | Fri, 11 Jul 2003 15:50:05 +0000 |
| Subject: | Re: Who's logged in from the browser? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29201@lists.php.net to get a copy of this message | ||
> When a user logs in via PHP - browser, how can you tell who is logged
> in to MySQL from that path. I've learned about how to check direct
> logins into MySQL using mysqladmin status function, but wanting to
> learn how to perform the other. Any help would be greatly appreciated.
Huh?
Your PHP script logs into MySQL, right? Or do you use the credentials
provided by the user to also log into MySQL? Either way, you can SELECT
USER() in MySQL to see who's currently logged in.
---John Holmes...