como fazer??
CODIGO
<?
$conexao=mysql_connect('localhost','XXXXXXX','XXXXXXX');
if ($conexao){
$query = mysql_select_db('XXXXXXXXX');
$rs = mysql_query('SELECT * FROM xxxxx WHERE ativo=1 ORDER BY dia , mes , ano LIMIT 4');
while($row = mysql_fetch_array($rs)){
?>
<p><img border="0" src="http://xxxxxxxxxxxxxxxxxxxx/<? echo $row['25']?>" width="288" height="130"><br>
Local:<? echo $row['1']?> - <? echo $row['2']?> - Dia: <? echo $row['4']?>/<? echo $row['5']?>/<? echo $row['6']?><br>
Coments: <? echo $row['3']?></p>
<?
}
}else{
print "Erro na conexão";
}
?>
</body>
</html>
ta funfando beleza , só queria que se a data estivesse vencida ele pulasse ela
Como fazer ??