How to get 10 entries from a database
Posted 09 November 2009 - 08:22 PM
What to do?
Posted 09 November 2009 - 08:48 PM
SELECT * FROM table WHERE ... LIMIT 10
PHP4 & MySQL4 are no longer supported.
PHPFreaks Tutorials | PHP Debugging: A Beginner's guide | PHP Security Tutorial || How To Ask Questions The Smart Way
Flingbits tutorials | Class Autoloading
Posted 09 November 2009 - 10:35 PM
$sql="SELECT * FROM data order by id desc limit 10";
but what to use so that query gets only the id that is lower that 1000?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users