Display Div tags after 4 results not from database
$a = 0;
while(){
if($a == 4){<div class="result"><p>}//Display after 4 results
$results .=''.$result.'';
if($a == 4){</p></div>}//Display after 4 results
$a++;
}
example:
<div class="result"><p>
result 1
result 2
result 3
result 4
</p></div>
<div class="result"><p>
result 5
result 6
result 7
result 8
</p></div>
<div class="result"><p>
result 9
result 10
result 11
result 12
</p></div>