so i have some kind of code on a page like this 

```html
<?php
$a = $_GET['act'];
if ($a){
include('show.php');
} else {
include('show.php');
}
?>

```

and on other page like this 

```html
<?php
$sql2 = "SELECT * from DONE ";
$b = mysqli_query ($con,$sql2);
$r = mysqli_fetch_assoc($b);
.......
?>

<?php
$sql3 = "SELECT * from ONGOING ";
$b = mysqli_query ($con,$sql3);
$r = mysqli_fetch_assoc($b);
.......
?>

```

my question , is it possible when the condition is met it execute the first query and when the condition doesn't met it execute the second query , when both of the query placed on same page ?