Canman2005 Posted March 29, 2006 Share Posted March 29, 2006 Dear allI have a if statement which checks to see if a session is a specific ID number. I use the following code;[code]<? if ($_SESSION['id'] == '43664') { ?>correct<? } ?>[/code]I want to be able to check against another id number called$_SESSION['id'] == '98411'How can I combine the two statements, so it can use either of those numbers held in the session.Thanks in advance if anyone can helpEd Quote Link to comment Share on other sites More sharing options...
shocker-z Posted March 29, 2006 Share Posted March 29, 2006 <?php if (($_SESSION['id'] == '43664') || ($_SESSION['id'] == '98411')) { ?>correct<?php } ?>should do the job :) Quote Link to comment 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.