Re: Search results

From: Date: Sun, 01 Apr 2001 23:17:32 +0000
Subject: Re: Search results
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8100@lists.php.net to get a copy of this message
In article <001301c0bafa$34d15be0$6f02a8c0@wgtn.catit.co.nz>, david@catalyst.net.nz ("David Drummond") wrote: > Can anyone tell me what is the best way to implement displaying multiple > search results using next and previous buttons to cycle through all the > results. I see this method done on a lot of sites but don't know how to do > it in PHP. "Limit" is how it's commonly done (though what's "best" really depends on what you're doing). In mysql, it would be something like: mysql_query("select foo from bar limit 5,10",$connect) //show ten records from result set, starting with the sixth I believe phpbuilder.com has a tutorial on this. If not them, then you shouldn't have much trouble finding examples on one of the other PHP tutorial sites. -- CC

« previous php.db (#8100) next »