title: How to fetch last 24 hours record from mysql using php
body: <p>I have checked similar questions on the site but I'm unable to understand how exactly it works. In my database, I have 3 columns - <code>id</code>, <code>name</code> and <code>password</code>. What do I need to add to my database and how can I get the last 24 hours records?</p>
  
  <pre><code>mysql_query("select * from core With-in the last 24 hours");
  </code></pre>