www.webdeveloper.com
Results 1 to 5 of 5

Thread: echo last mysql entry

  1. #1
    Join Date
    Sep 2010
    Posts
    15

    echo last mysql entry

    How can I echo the last 5 mysql entries in a table?

  2. #2
    Join Date
    May 2006
    Location
    the netherlands
    Posts
    454
    include an 'ORDER BY' and 'LIMIT' clause in your select query
    Free Scripts (PHP, Javascript, MySQL), homemade in the Excudo Devshed
    Create your own personal Startpage for free

  3. #3
    Join Date
    Sep 2010
    Posts
    15
    could you include an example code?

  4. #4
    Join Date
    May 2006
    Location
    the netherlands
    Posts
    454
    Did you click on the link in my post? The mysql-manual page contains tons of examples. i wouldn't know what to add to that.

    If you have questions about the examples, of course i'd be happy to give some more information, but in that case i need to know which parts you don't understand.
    Free Scripts (PHP, Javascript, MySQL), homemade in the Excudo Devshed
    Create your own personal Startpage for free

  5. #5
    Join Date
    Sep 2010
    Posts
    15
    Yea, didn't work the first time but I re-wrote my code and added some things. Got it perfect now

    Thanks for help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles