Reply LinkBack Thread Tools Search this Thread
Old 01-11-2004, 09:52   #1 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
limit displayed rows - newbie php

Hi, i know this is a simple question, but how do you only display a limited number of table inserts, for example the last 5 entries.

cheers
  Reply With Quote
Old 01-11-2004, 10:00   #2 (permalink)
Joewebber
Senior Member
 
Joewebber's Avatar
 
Join Date: Feb 2004
Location: Exeter
Posts: 773
Do you mean limit the number of results in a mysql query?

If so, just add "limit 5" to the end of your query
  Reply With Quote
Old 01-11-2004, 11:36   #3 (permalink)
mid-ori
Senior Member
 
mid-ori's Avatar
 
Join Date: Oct 2003
Posts: 162
thank you, i have it sorted now.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8