Hello, how can I add an element in the middle of the loop and then continue its execution. Here is an example of a loop:
while ($date= $sql->fetch()) { //ΡΠΈΠΊΠ» 1 Π²ΡΠ²ΠΎΠ΄ΠΈΡ 10 Π·Π°ΠΏΠΈΡΠ΅ΠΉ echo $date['title']; echo $date['img']; echo $date['text']; } while ($rekl= $sqlrekl->fetch()) { //ΡΠΈΠΊΠ» 2 Π²ΡΠ²ΠΎΠ΄ΠΈ Π·Π°ΠΏΠΈΡΠΈ echo $date['title']; echo $date['img']; echo $date['text']; } In the middle of its execution, you need to output another cycle, then continue the first one. Execution Example:
ΠΠ°ΠΏΠΈΡΡ1 .. ΠΠ°ΠΏΠΈΡΡ5 //ΠΡΠΎΡΠΎΠΉ ΡΠΈΠΊΠ» ΠΠ°ΠΏΠΈΡΡ6 .. ΠΠ°ΠΏΠΈΡΡ10