Home > Weddings > AK

0) { if ($endRecord>$count) $endRecord = $count; if ($startRecord==0) $startRecord = 1; echo ($count)." results matching your search. Displaying records ".($startRecord)." through ".$endRecord."."; // Page navigation $pages = floor($count / $recordsPerPage); if ($count % $recordsPerPage > 0) $pages++; if ($searchName=="%") $searchName = ""; if ($searchState=="%") $searchState = ""; echo "

"; $count = 0; foreach($results AS $row) { $count++; //post_key, post_creation_dt, post_leadline1, post_leadline2, post_first_run_date, post_heading1, post_heading2 //print_r($row); $postingKey = $row["POST_KEY"]; $publicationDate = $row['POST_FIRST_RUN_DATE']; $newspaperName = $row['NEWS_DBA']; $type = $row['APP_TYPE']; switch ($type) { case "BIRTHS-BIRTHDAYS": $section="birthdays"; break; case "OTHERS": $section="other"; break; default: $section = strtolower($type); break; } if($brandingMode==true) { $url = strtolower($type)."/posting.php".$qs."&key=".$postingKey; } else { $url = "posting.php?key=".$postingKey."&".$qs; } if (strtolower(trim($newspaperName)) == "important occasions") { $newspaperName = "Published on ImportantOccasions.com"; } else { $newspaperName = "Published in the ".$newspaperName; } // if (!empty($row['POST_HEADING1'])) // { // $listingName = trim($row['POST_HEADING1']); // } // else // { // $listingName = trim($row['POST_HEADING2']); // } $listingName = $row['HEADING']; $keyword = $row['LASTNAME_KEYWORD']; $listingName = $keyword.": ".$listingName; if ($brandingMode == true) { echo "". "". ""; } else { echo "". "". ""; } } echo "
". "".$listingName."". "".$type."
".$publicationDate."
". "".$listingName."". "".$type."
".$publicationDate."
".$newspaperName."
"; if ($pages > 1) { echo "

Jump To Page:
"; // Show page navigation for ($i=1; $i<=$pages; $i++) { $iUrl = ""; echo "[".$iUrl.$i."] "; } } } else { echo "

There are no events matching your search criteria. Please revise your search criteria and try again.

"; } ?>