Jump to content

Search results help


chrchcol

Recommended Posts

I have a code snippet

 

<?

$a=getSearchResults($db);

arsort($a);

foreach ($a as $term=>$count) {

print "<tr><td>";

print "<a href='".searchTermToGoogleSearch($term)."'>$term</a></td><td>$count</td></tr>\n";

}

?>

 

The purpose of it just prints out the results.  The problem is it prints all the results on the same page.  Is there a way to only print say 10 results per page.

Link to comment
https://forums.phpfreaks.com/topic/173286-search-results-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.