include ("header_web.php"); ?> $fecha_hoy=date(Y)."/".date(m)."/".date(d); $sql = "select * from consejos where cns_dia='".$fecha_hoy."' and cmp_id=1 order by cmp_id desc"; $result = mysql_query($sql,$Con); $consejo = htmlentities(mysql_result($result,0,"cns_texto")); $id_consejo = mysql_result($result,0,"cns_id"); ?>