jasonc Posted March 19, 2006 Share Posted March 19, 2006 <?phpsession_start();if(!(isset($_SESSION['results']))) {session_register(results);}please can someone tell me if the above code is ok or not, i need to check if the array 'results' is set or not, as i think i am resetting the array each time the page is visited. nione of the array values stay when the page is re-entered after click a submit button.thanks for you help. Quote Link to comment https://forums.phpfreaks.com/topic/5301-please-can-someone-check-the-syntax-of-this-code/ Share on other sites More sharing options...
SieRobin Posted March 19, 2006 Share Posted March 19, 2006 [code]<?phpsession_start();if(!(isset($_SESSION['results']))) {session_register(results);}[/code] Why exactly would you put an extra parenthesis?[code]<?phpsession_start();if(!isset($_SESSION['results'])) {session_register(results);}?>[/code] Try that. Quote Link to comment https://forums.phpfreaks.com/topic/5301-please-can-someone-check-the-syntax-of-this-code/#findComment-18835 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.