Codice PHP:
$test ="SELECT colX FROM tab WHERE colY='pippo'"
  
$result mysql_query($test$db);
  while (
$row mysql_fetch_array($result)) {
   
if(
$row['colX'] == 'a') {