Xtremer360 Posted September 20, 2008 Share Posted September 20, 2008 When a staff user is logged into the admin control panel they have the ability to edit their bio page. print '<tr><td bgcolor="#CCCCCC"><a href="editbio.php" target=main>Edit Staff Bio</a></td></tr>'; What do I need to do to the link above to when editbio.php is opened to paste the correct user's information that is logged in. Quote Link to comment Share on other sites More sharing options...
chris_2001 Posted September 20, 2008 Share Posted September 20, 2008 I assume they are logged in with a session variable and your bio page is stored in a sql database. What you could do is get it to grab all the data from the username (session variable) rather than doing anything with the link. Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 20, 2008 Share Posted September 20, 2008 your select statement needs the where id='$id' that means only that user get his admin info only.............. Quote Link to comment Share on other sites More sharing options...
Xtremer360 Posted September 20, 2008 Author Share Posted September 20, 2008 I dont' have a select field. Basically if the person logs in and if they are staff then they are sent to the admin control panel. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted September 20, 2008 Share Posted September 20, 2008 I assume they are logged in with a session variable and your bio page is stored in a sql database. What you could do is get it to grab all the data from the username (session variable) rather than doing anything with the link. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.