Jump to content


Photo

please can someone check the syntax of this code


  • Please log in to reply
1 reply to this topic

#1 jasonc

jasonc
  • Members
  • PipPipPip
  • Advanced Member
  • 841 posts

Posted 19 March 2006 - 06:12 PM

<?php
session_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.


#2 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 19 March 2006 - 06:14 PM

<?php
session_start();
if(!(isset($_SESSION['results']))) {
session_register(results);
}


Why exactly would you put an extra parenthesis?

<?php
session_start();
if(!isset($_SESSION['results'])) {
session_register(results);
}
?>


Try that.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users