How can I make an Admin object in PHP? How can I pass
admin ritghts to the
following function:
An admin is just a user with certain rights, there is no such thing as
an admin object, just a user object, but that's not actually
important. Userrights are irrelevant if you're writing php, though,
since php has direct access to the database and can do anything it
wants. I'm not sure what's causing your problem (I don't fully
understand what you're trying to do - if I'm reading it right, the
code extract you gave doesn't actually output anything), but you don't
need to give php any permissions, it's able to do everything already.