Hi@all
I have a mySQL Database which i use with PHP. If I have a search result, I want to show it by steps of 10 (like in google). Right now, I use
for(i=0; i<$result; i++){
echo "resultset";
}
which shows all results at once.
thx for help!
mazzo
show mysql-search-result in steps of 10
Moderator: General Moderators
-
mazzogeddon
- Forum Newbie
- Posts: 7
- Joined: Thu Aug 01, 2002 7:23 am
- Location: Berlin
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Try searching on this forum for 'previous AND next' this is a fairly popular question so there's lots of stuff on it.
Mac
Mac
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
If you have the user click "next" or "prev" or something like that, make sure you check if the user input is an integer
http://www.php.net/manual/en/function.ctype-digit.php
http://www.php.net/is_int
etc
http://www.php.net/manual/en/function.ctype-digit.php
http://www.php.net/is_int
etc