Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 1
Trades: 0
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
 
 
Register now for full access!
Old 05-03-2008, 10:54 AM Re: php blog - mysql select problem
Plugin-Developer's Avatar
Weightlifting CS Student

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

Code:
"SELECT * FROM post_table_name LIMIT 5 OFFSET 5"
__________________

Please login or register to view this content. Registration is FREE
- Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
Plugin-Developer is offline
Reply With Quote
View Public Profile Visit Plugin-Developer's homepage!
 
Reply     « Reply to php blog - mysql select problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09619 seconds with 12 queries