Jump to content

Archived

This topic is now archived and is closed to further replies.

ericc59

PHP/MySQL query problem

Recommended Posts

Can anyone tell me why this query would return 49 results instead of 25?

[code]$query = "SELECT id FROM forum_threads WHERE forum='2' ORDER BY id DESC LIMIT 25, 50";[/code]

Thanks,
Eric

Share this post


Link to post
Share on other sites
Because your telling it to return 50 results starting at result number 25.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.