Perad Posted November 22, 2006 Share Posted November 22, 2006 It makes no sense and frankly its pissing me off.My script contains a several functions within the main function. It is controlled by a switch statement. There are 3 switch statements allowing 3 levels of access. Admin, loggedin and GuestThe admin level of the script doesn't work because whenever i put the $adminaccess variable into my main function the script stops working. When i say stopped working i mean the switch statement just decides to switch to default... Its so annoying as i have an almost identical script working perfectly on another page.On the main php page i have included the viewadminpanel script which has got the adminaccess function declared on it.Does anyone know why the script stops fucntioning when i add "global $adminaccess;" to the loggedinnews function?loggedinnews functionWas the switch statement... Link to comment https://forums.phpfreaks.com/topic/28075-variable-breaks-pagesolved/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.