PDA

View Full Version : Users viewing own Page


zivester
07-31-2008, 06:26 PM
How (in code) can I determine if the user is viewing their own page?

$userinfo[userid] is the page that I'm on right?

If so, whats the code for the current active user? How can I make the check ?

--------------- Added 1217534709 at 1217534709 ---------------

ok well i figured it out, but is it easier then this: ?

$bbuserinfo[userid] == $userinfo[userid]

Dismounted
08-01-2008, 06:13 AM
If you are using it in a conditional, quote array keys, otherwise, PHP will throw errors with E_STRICT enabled.