After years of front end design, I decided I need to get a good handle on php coding.
Here is my first question here
I have some code that goes through some entries in a database and display various variables.
I would like the first entry to display winner and the other entries to display runner up.
How would I code this?
Here is the code that I am working with
[php]<?php
$pages = array_chunk($listings,$limit);
$j=0;
foreach($pages AS $page):
?>
<?php $i=0;
while(!empty($page)):
$i++; $j++; $listing = array_shift($page); ?>
NOT SURE WHAT CODE SHOULD BE HERE?
<?php endwhile;?>
<?php endforeach;?> [/php]
This is my first post here so I hope I provided all of the information needed.
Thanks! – Steven