Log in

View Full Version : question using php to search mysql



nipper4369
04-29-2009, 01:29 PM
i have been tryin to figure this out for a few days now. what im tryin to do is make a search much like this page http://ds.rom-news.org/. the issue im having is i cant seem to figure out how to make it display the number of pages. say i have 300 results only 30 per page. much like that site above has. i have looked all over i just cant seem to find anything remotely like that i can use as a example. if anyone has any ideas where i can get a example on how its done please post

Schmoopy
04-29-2009, 01:51 PM
This is called "pagination" and there are quite a few tutorials / scripts that do this.

Here's one to start you off:

http://www.phpeasystep.com/phptu/29.html

amutha
04-30-2009, 07:27 AM
try this

codediesel.com/php/simple-pagination-in-php/