unidox Posted October 28, 2007 Share Posted October 28, 2007 I have this include: <? include("" . $site_url . "incs/files.inc.php?p=admin_users"); ?> and this is admin_users: case "admin_users": if(($_SESSION['admin'] == 1) && ($_SESSION['level'] <= $level['users'])) { ?> Admin Users. <? } else { // Login Failed echo "You dont have access"; } break; with the include, it doesnt read the session, and it says I dont have access, but if I go to the page like http://site.com/?p=admin_users it works fine. Whats wrong Link to comment https://forums.phpfreaks.com/topic/75142-solved-include/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.