salve e buona sera ragazzi sono totalmente incasinato non riesco a risolvere un problema , volevo chiedervi e possibile in un ciclo while visualizzare il risultato di 6 o piu select? tipo:
Codice PHP:
if($autorizzato=="1"){
$caric_blocks_home1 = "select * from blocks_home where posizione ='1' and permission='2' and enable ='1' limit 1";
}else {
$caric_blocks_home1 = "select * from blocks_home where posizione ='1' and permission='1' and enable ='1' limit 1";
}
$caric_blocks_home2 = "select * from blocks_home where posizione ='2' and permission='1' and enable ='1' limit 1";
$caric_blocks_home3 = "select * from blocks_home where posizione ='3' and permission='1' and enable ='1' limit 1";
$caric_blocks_home4 = "select * from blocks_home where posizione ='4' and permission='1' and enable ='1' limit 1";
$caric_blocks_home5 = "select * from blocks_home where posizione ='5' and permission='1' and enable ='1' limit 1";
$caric_blocks_home6 = "select * from blocks_home where posizione ='6' and permission='1' and enable ='1' limit 1";
$estrazione = array($caric_blocks_home1,$caric_blocks_home2,$caric_blocks_home3,$caric_blocks_home4,$caric_blocks_home5,$caric_blocks_home6);
$query = @mysql_query($sql);
while($array = mysql_fetch_array($estrazione)){
}