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. Link to comment https://forums.phpfreaks.com/topic/125113-edit-bio/ 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. Link to comment https://forums.phpfreaks.com/topic/125113-edit-bio/#findComment-646610 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.............. Link to comment https://forums.phpfreaks.com/topic/125113-edit-bio/#findComment-646693 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. Link to comment https://forums.phpfreaks.com/topic/125113-edit-bio/#findComment-646696 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. Link to comment https://forums.phpfreaks.com/topic/125113-edit-bio/#findComment-646720 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.