<div id="colEsquerda">
<?php
$query = "SELECT * FROM 'noticias' ORDER BY data ASC TOP 3 ";
$sql = mysql_query($query);
$linhas = mysql_fetch_row($sql);
$array = mysql_fetch_array($sql);
?>
<table>
<?php if($linhas > 3 ){ while ($array){ ?>
<tr>
<td><?php echo $array['imagem']?></td>
<td><?php echo $array['titulo']?></td>
<td><?php echo $array['descricao']?></td>
</tr>
<?php }} ?>
</table>
</div><!--Fim div COLESQUERDA-->
<?php
$query = "SELECT * FROM 'noticias' ORDER BY data ASC TOP 3 ";
$sql = mysql_query($query);
$linhas = mysql_fetch_row($sql);
$array = mysql_fetch_array($sql);
?>
<table>
<?php if($linhas > 3 ){ while ($array){ ?>
<tr>
<td><?php echo $array['imagem']?></td>
<td><?php echo $array['titulo']?></td>
<td><?php echo $array['descricao']?></td>
</tr>
<?php }} ?>
</table>
</div><!--Fim div COLESQUERDA-->
Comment