Jump to content

selecting data from mysql for past 12 hours worth of records


rwilmot1

Recommended Posts

Hi Guys,

 

This is my first post so pleas be gentle  :P

 

I have only been coding PHP for the past month or so and have created a log diary. I have set up the fields and calendar entries as well as other bits and bobs. What I want to do now is call data from the mysql database but for records that were created in the past 12 hours, then another report for the past 24 hours, then 36 etc.

 

I do have a timestamp entry in the mysql table.

 

I hope that makes sense???! :confused:

 

If it doesn't then I will try and provide more detailed info along with some code

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.