How can I let the user chose how many results they want displayed on a page? For instance they should be able to specify if they want 11, 20, 233 or something to that effect.
thunderbbolt
0
Newbie Poster
Recommended Answers
Jump to Postyou have to use the limit statement in the query
example:
$sql = 'SELECT * FROM table LIMIT 0, 10';
where 0 is the starting position, which is the beginning and 10 is the user limit you want
All 4 Replies
somedude3488
228
Nearly a Posting Virtuoso
thunderbbolt
0
Newbie Poster
somedude3488
228
Nearly a Posting Virtuoso
thunderbbolt
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.