MySQL Query Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chizeng
Forum Newbie
Posts: 11
Joined: Sun Feb 28, 2010 10:52 pm

MySQL Query Question

Post by chizeng »

Hello friendly board members,

What is the best code to query a MySQL database and retrieve items X through Y with PhP? For instance, what if I wanted to retrieve items with "id"s of 10 through 15 or perhaps the 5 most recently added items?

Thanks,


Chi
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: MySQL Query Question

Post by mikosiko »

chizeng wrote:What is the best code to query a MySQL database and retrieve items X through Y with PhP? For instance, what if I wanted to retrieve items with "id"s of 10 through 15 or perhaps the 5 most recently added items?
well... the best one is going to be the one that you can write.... and show it here asking specific doubts ... we will glad to help

Miko
Post Reply