Re: [Phplib-users] user-variables and SQL select ?
Brought to you by:
nhruby,
richardarcher
|
From: anze <an...@vo...> - 2002-05-31 13:33:24
|
Hi!
> $db->query("SELECT * FROM some_table WHERE setting = '$setting'");
>
> The user class handles registered variables just like the session class
> does - the only difference is that the user variables are maintained across
> multiple authenticated sessions.
I don't think that was the question - the way I understand it some admin has
to find out which users have some value in their user registered variables. I
might be wrong, but here is my 5 cents:
Since the user registered variables are stored in database as PHP code, there
is no easy way to get them from DB. You can decode this PHP code, but you are
better off if you just save the values to some other DB table instead of
registering them (you can do both though, just take care that they are in
sync).
Have fun!
Anze
|