Re: [sublmnl] Multi Record listings on one page - need help
Hi,
So you have a section with a field called serving_type that has a value of either globally, locally, or neighborhood. Is that right?
If so, what you can do is go through your list and divide your record set into 3 separate record sets based on this value.
For example:
<?php
$globallyRecords = array();
$locallyRecords = array();
$neighborhoodRecords = array();
foreach ($myRecordSet as $record) {
if ($record['serving_type'] == "globally") {
$globallyRecords[] = $record;
}
elseif ($record['serving_type'] == "locally") {
$locallyRecords[] = $record;
}
elseif ($record['serving_type'] == "neighborhood") {
$neighborhoodRecords[] = $record;
}
}
?>
Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/