Jump to content

from one # to another


Jay2391

Recommended Posts

I am trying to diplay a message base on data from a range

 

so I want something like if the code below...

 

if($activity == 1 or 2 or 3 or 4 or 5 or 6 ){

      $activity1 = "New Member";

}

 

is there a way to do like the random function like from 1 to 6

 

I try this but is incorrect...

 

if($activity == (1, 6)){

      $activity1 = "New Member";

}

 

I am looking for the correct way ...to do that

 

Link to comment
https://forums.phpfreaks.com/topic/36659-from-one-to-another/
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.