Re: [PHP] checking for existance of $_SESSION variables

2004-04-03 Thread Red Wingate
Hi Andy, Session Variable $guestbook exists? echo isset ( $_SESSION['guestbook'] ) ? 'yes' : 'no' ; Session Variable $guestbook exists and is not empty? echo ( isset ( $_SESSION['guestbook'] ) AND empty ( $_SESSION['guestbook'] ) === FALSE ) ? 'yes' : 'no'; -- red Andy B wrote: hi... i ha

[PHP] checking for existance of $_SESSION variables

2004-04-03 Thread Andy B
hi... i have the following code and i need to check to see if $_SESSION['guestbook'] has been assigned to the session yet. if it has then use its values to create the combo box...if it hasnt then run the sql query and assign it to the session as well as fill the combo box with it... any ideas h