$result = sql_select("id_article, id_rubrique, titre, statut", "spip_articles", "statut = 'prop'", "", "date DESC"); while ($row = sql_fetch($result)) { $id_article=$row['id_article']; if (autoriser('voir', 'article', $id_article)) { // actions } }