Jump to content


Photo

$value = $value2 AND $value3 = $value4


  • Please log in to reply
2 replies to this topic

#1 ukweb

ukweb
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts
  • LocationLlandudno, North Wales

Posted 11 April 2006 - 05:32 PM

Hi

I'm making an application which displays a area on a webpage if two statements are true.

for the example Im using values $value1, $value2, $value3 and $value4

What do I use for AND becuase I know AND isnt the one im after

#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 11 April 2006 - 06:07 PM

if($value1 == 'some value' && $value2 == 'some value'){

Ray

#3 ukweb

ukweb
  • Members
  • PipPipPip
  • Advanced Member
  • 119 posts
  • LocationLlandudno, North Wales

Posted 11 April 2006 - 08:36 PM

[!--quoteo(post=363741:date=Apr 11 2006, 01:07 PM:name=craygo)--][div class=\'quotetop\']QUOTE(craygo @ Apr 11 2006, 01:07 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
if($value1 == 'some value' && $value2 == 'some value'){

Ray
[/quote]

Thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users