PDA

View Full Version : How do I show the first X resaults from a Table?


DrewM
03-21-2006, 08:37 AM
Well I'm making a new news system and on the home page I only want it to show the first 5 or 6 results. Can some one help me do this?

filburt1
03-21-2006, 07:40 PM
<a href="http://dev.mysql.com/doc/refman/5.0/en/select.html" target="_blank">http://dev.mysql.com/doc/refman/5.0/en/select.html</a>

Look at the LIMIT clause.

DrewM
03-21-2006, 08:29 PM
thanks

how do I do this with vb?