This is a portion of the code I am working on:

```
if($access == 2)

{

    if ($permre['pages'] == indi_add)// 
        {echo "show page";}

    if ($permre['pages'] == mass_add)// 
        {echo "show page";}

    if ($permre['pages'] == export)// 
        {echo "show page";}

}

elseif ($access == 0)

{

    if ($permre['pages'] == indi_add)// 
        {echo "dont show page";}

    if ($permre['pages'] == mass_add)// 
        {echo "dont show page";}

    if ($permre['pages'] == export)// 
        {echo "dont show page";}**

}

```

I am creating a page where when a condition such as `$access == 2` is executed it has multiple values. Some the values include: indi\_add, mass\_add and export. Then I want to use these values to create 3 conditions as shown above. 

However, when executing this code, only the first if statement is being executed and the rest aren't. Is there a away where I can make php check the 3 if statements at once and do the action requested?

Adding on, I can't use `if(condition1 && condition2 && condition3)` because there is a possibility that one of the conditions may not be satisfied.

So how do I go about executing all the statements even if the first statement if true or false? I am actually getting the values such as indi\_add, mass\_add and export from phpmyadmin database. The query goes something like this:

> 
> "select pages from access where access = 2".
> 
> 
> 

Due to the query above I get the page values which are the ones mentioned above. The echo page is just an example. In my actual coding, if the statement for `access == 2` if true, the result is that a particular page will be activated. I am trying to do something like access control. Also, behind the scene, access level for each page can be changed by the admin. Therefore, the query above may bring different results every time the access level changes. I'm hoping to find a way where I can execute the if conditions whenever they are true.