Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts

    need help with a form of defined access

    Im needing help setting up a form of Access defined for a user.

    In a table iv set different types, and set to 0 and 1.

    Im needing help making a php if statement that will print the HTML inside the if statement, for each ifstatement true.. which can possibly be all.

    Reason be,
    The 0 and 1 can be chagned by the admin in the user profile page
    each php if statement looking to see if 1 is there, will display a link to a form or another protected page

  • #2
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts

    if($permission == 1)
    {
    echo '<a href="supersecret.html">Super Secret Page</a>';
    }

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •