$query = "SELECT * FROM adj_blog where estado = 'V' and categoria = 10 and ( desde <= now() or desde is null ) and ( hasta >= now() or hasta is null ) order by id_entrada ;";
$result = mysql_db_query ($db_nombre, $query, $link);
$exist = mysql_num_rows($result);
if ($exist>0)
{
?>