Hello. The database stores records of articles. I want to put them all on the page, and this can be implemented with such code:
$article_all = mysql_query("SELECT * FROM `article` ORDER BY `id` $sort_article LIMIT $otkuda, $set_coll_page"); while ($item = mysql_fetch_assoc($article_all)) { ///тут разметка статьи } So, the markup of the article is just a selection of its blocks:
<div classs="item"> статья </div> The question is how for the first article (which has the biggest id), do another markup? that is, select it with other blocks.
I would be very grateful for the help and any useful information.
ifcondition ... if the counter is still zero - output such and such a block, otherwise - another - Aleksey ShimanskywhileIf the first iteration, then do one thing, and if not, the other one is Aleksey Shimansky