Prodrias usar la instrucción
switch de php para lograr lo que quieres
Código PHP:
Ver original<?php
$filtro = '';
switch ($filtro){
case 1:
$filtro.=" tabla_1 where aaaa LIKE '%".strtoupper($_POST[''])."'"; break;
case 2:
$filtro.=" tabla_2 where bbbb LIKE '%".strtoupper($_POST[''])."'"; break;
case 3:
$filtro.=" tabla_3 where cccccLIKE '%".strtoupper($_POST[''])."'"; break;
}
$filtro.=" ORDER BY aaaa";
?>
Saludos