Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-18-2007, 03:04 AM   PM User | #1
glish_dreams
Regular Coder

 
Join Date: Dec 2005
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
glish_dreams is an unknown quantity at this point
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
glish_dreams is offline   Reply With Quote
Old 08-18-2007, 03:59 AM   PM User | #2
whizard
Senior Coder

 
whizard's Avatar
 
Join Date: Jan 2005
Location: Philadelphia, PA, USA
Posts: 1,457
Thanks: 10
Thanked 37 Times in 37 Posts
whizard will become famous soon enoughwhizard will become famous soon enough

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

Dan
__________________
If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.
Step 1: Learn. Step 2: Search. Step 3: Post here.
whizard is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:34 AM.


Advertisement
Log in to turn off these ads.