How to page results?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We've been working on a news section for our site which allows us to find
news stories -> dump them in a mysql db, list the summaries in a page and
then link to a full version of the story.

The bit i'm having trouble with is how to list the results so we can set up
multi pages of content and link them via a simple

Previous | 1 2 3 4 5 | Next

type of scenario.

I got a query thus

$result2=mysql_num_rows($result);

to count our results. Does anyone have any pointers on what to do next?

Cheers
mikek

-- 
Mike Karthauser 
Managing Director - Brightstorm Ltd

Email       >> mikek@brightstorm.co.uk
Web         >> http://www.brightstorm.co.uk
Tel         >> 0117 9426653 (office)
               07939 252144 (mobile)

Snailmail   >> Unit 8, 14 King Square,
               Bristol BS2 8JJ


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux