runnerjp Posted July 5, 2008 Share Posted July 5, 2008 im tryin to show a link to admin but i cant remember how to add a the link correctly <?php if($id == 1){ <a href="http://www.runningprofiles.com/members/index.php?page=admin">Admin</a>;}; ?> how would i correct that? Link to comment https://forums.phpfreaks.com/topic/113342-solved-if-user-is-admin-show-link/ Share on other sites More sharing options...
LooieENG Posted July 5, 2008 Share Posted July 5, 2008 <?php if($id == 1){ echo '<a href="http://www.runningprofiles.com/members/index.php?page=admin">Admin</a>'; } ?> Link to comment https://forums.phpfreaks.com/topic/113342-solved-if-user-is-admin-show-link/#findComment-582315 Share on other sites More sharing options...
runnerjp Posted July 5, 2008 Author Share Posted July 5, 2008 oh boy must have had a hard day lol that 1 shud have NOT stoped me cold lol cheers Link to comment https://forums.phpfreaks.com/topic/113342-solved-if-user-is-admin-show-link/#findComment-582319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.