I want to place an advert after entries 4 and 12 if my database query comes back with over 13 results. If the results are less than 13 i would like to place just the one advert at 6.
How do i do this?
code for getting database results
@foreach($batsmen as $bat)
<h2>$bat->name<h2>
<p> $bat->age<p>
<p> $bat->team<p>
@endforeach