si un po troppo generale....

il while è un

while($array_mysql_fetch_array($res)) {

}

quello che mi interessa è che se la variabile = 1 mi fa il while dello script se no no...

Al di la del valore della variabile....