Reply
php blog - mysql select problem
Old 05-03-2008, 07:30 AM php blog - mysql select problem
Junior Talker

Posts: 1
hey guys,

I'm trying to script my own blog, but I have a problem.
On the homepage I got the script to show the last 5 post that have been made, but now I want to show "older" post so it I need a page that skips the first 5 post and shows the next 5 post. How can I get this info out of mysql ?


thanks
kozmk is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-03-2008, 09:54 AM Re: php blog - mysql select problem
nickohrn's Avatar
Weightlifting CS Student

Posts: 505
Name: Nick Ohrn
I think the following may be what you're looking for.

Code:
"SELECT * FROM post_table_name LIMIT 5 OFFSET 5"
__________________
Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
nickohrn is offline
Reply With Quote
View Public Profile Visit nickohrn's homepage!
 
Reply     « Reply to php blog - mysql select problem
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10503 seconds with 13 queries