A
A
Abay Tazhigaliev2016-02-06 12:37:16
PHP
Abay Tazhigaliev, 2016-02-06 12:37:16

How to display search results in two sections, as in the photo?

f8604d0389f64c329111b55712103fb9.jpg
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

2 answer(s)
V
Valery, 2016-02-06
@webcoderpro

So what's the problem? Two unrelated entities - $modelVideo, $modelRecords. So right? And output them separately in a loop.

A
Andrey, 2016-02-06
@VladimirAndreev

you can take it out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question