Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6795383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:20:18+00:00 2026-05-26T18:20:18+00:00

How do I pull the latest x amount of entries from a mysql table

  • 0

How do I pull the latest x amount of entries from a mysql table and then display it in an html table, using PHP?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:20:19+00:00Added an answer on May 26, 2026 at 6:20 pm

    I assume your table looks something like this:

    CREATE TABLE reviews {
        review_id INT NOT NULL AUTO_INCREMENT PRIMARY,
        titleofreview TEXT,
        yourreview TEXT,
        [...]
        created DATETIME
    }
    

    So when you retrieve the latest four reviews, it would probably use a query that looks like this:

    SELECT titleofreview, yourreview 
    FROM reviews 
    ORDER BY review_id DESC 
    LIMIT 4
    

    If you only use a date to order them, then replace review_id with created.

    As for putting it in a table, here is a guide to making tables in HTML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Quartz to pull latest tasks (from another source), it then adds it
How do I pull out the filename from a full path using regular expressions
I'm using some client-side JavaScript code to pull a lot of JSON data from
I'm looking to pull the latest posts from a series of specific users. In
I have been requested by a client to pull the latest posts from their
I am trying to pull the latest five image thumbs from my booru datebase
I've modified a file, then I want to get latest version from remote. So
I'd like to pull a stream of PCM samples from a Mac's line-in or
I need to pull some BLOB data from a SQL Server 2005 database and
I would like to pull artifacts from teamcity. I've been trying to use c#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.