1
I have the following HTML inside a while
PHP:
<article data-id="1">...</artcile>
<article data-id="2">...</artcile>
<article data-id="3">...</artcile>
<article data-id="4">...</artcile>
<article data-id="5">...</artcile>
<article data-id="6">...</artcile>
<article data-id="7">...</artcile>
<article data-id="8">...</artcile>
<article data-id="9">...</artcile>
<article data-id="10">...</artcile>
<article data-id="11">...</artcile>
<article data-id="12">...</artcile>
<article data-id="13">...</artcile>
<article data-id="14">...</artcile>
<article data-id="..."></artcile>
I would like with PHP to select specific results within the loop:
1, 4, 7, 10, 13 ...
Would select 3n+1
exactly.
You already got something done?
– CesarMiguel
@Cesarmiguel managed to get <article> received
data-id++
that is, that it was incremented +1 each loop. It was written in the code above. @Bacco, "select" is referencing this link -> http://catalogos.axitech.com.br> where the highlighted images receive different sizes.– Marcos Vinicius