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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.