Page 1 of 1

MySQL Query Question

Posted: Wed Mar 24, 2010 3:48 pm
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

Re: MySQL Query Question

Posted: Wed Mar 24, 2010 3:53 pm
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