Jump to content

Session help


dc_jt

Recommended Posts

Im doing a shopping basket and Ive got an image which must only be displayed if $_SESSION['basket'][1475] is set or $_SESSION['basket'][1476] is set AND no other products are set in the session for example $_SESSION['basket'][1477], $_SESSION['basket'][1478], $_SESSION['basket'][1479] etc.

 

Whats the best way to do this? I tried the following but it doesnt seem to work:

 

 if($_SESSION['store']['store_id'] || (isset($_SESSION['basket'][1475]) || (isset($_SESSION['basket'][1476]) && !isset($_SESSION['basket'][1468])))){?>	

 

By the way I also need it to be shown if $_SESSION['store']['store_id'] is set.

 

Hope this makes sense.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/95355-session-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.