+ require_once '../../lib/mecondavdb.php';
+ $db = MEconDAVDB::Connect();
+ $fecha_limite = '2003-07-01';
+ $fecha_nuevo = '2003-07-07';
+ $query = "SELECT Articles.article_id,
+ IF(Articles.publication_date > '$fecha_nuevo', 'NUEVA', null)
+ FROM Articles, ArticlePublicationStates
+ WHERE Articles.article_publication_state_id =
+ ArticlePublicationStates.article_publication_state_id
+ AND ArticlePublicationStates.publication_state_id=5
+ AND Articles.publication_date > '$fecha_limite'
+ ORDER BY Articles.publication_date desc";
+ $result = $db->query($query);
+ if(DB::isError($result))
+ die($result->getMessage("query mal hecho"));