$imoveis=mysql_query("SELECT * FROM tabela1, tabela2 where tabela2.dataD = '" . $data_hoje . "' order by id_imovel DESC LIMIT 9")
$cont = 1;
while($row = mysql_fetch_object($imoveis)){
MOSTRA NA PÁGINA
$cont++;
}
if($cont < 9){
$limiteDestaque = 9 - $cont;
$imoveisDestaque2 = mysql_query("SELECT * FROM tabela LIMIT $limiteDestaque ");
while($row = mysql_fetch_object($imoveisDestaque2)){
MOSTRA NA PÁGINA
}
}
digo's Content
There have been 2 items by digo (Search limited from 25/04/2023)