Answer the question
In order to leave comments, you need to log in
How to display search results in two sections, as in the photo?
Here is the code to display search results
<?php
if($results != false)
{
for($i = $start_pos; $i < $endpos; $i++):?>
<?=$results[$i]['title' ];?>
<?php endfor;
}?>
We need to display 2 cycles of videos and articles, is that possible?
Answer the question
In order to leave comments, you need to log in
So what's the problem? Two unrelated entities - $modelVideo, $modelRecords. So right? And output them separately in a loop.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question