Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Latest Entry [MySQL + PHP]
#1
Hey,

I'm working on a new site (http://www.programminglife.net/) and I've came across a bit of a problem, I'm not sure how to explain it using 'generic' MySQL terms so I'll just tell you what is happening, without giving you too much information on what the site is actually going to be.
The site allows users to submit snippets of code, on the front page I have a 'Latest Snippet' section set up, what I want to know is how to actually find out which snippet is the 'latest' one there, I have a column in the 'snippets' table that holds the current timestamp (which appears to be in the YY/MM/DD HH:MM:SS format) for each snippet, I can grab these but I have no idea what to do with them, how exactly do I find out which one is the latest snippet?

Reply ASAP, It's kind of a brick wall for me and I can't really do anything until it's fixed.

Thanks.
[Completely Honest. Seriously.]

Protip: Anonymous Reputation Points are for Pussies
Reply


Messages In This Thread
Latest Entry [MySQL + PHP] - by manipulate - 12-17-2009, 03:34 AM
RE: Latest Entry [MySQL + PHP] - by Gaijin - 12-17-2009, 03:52 AM
RE: Latest Entry [MySQL + PHP] - by manipulate - 12-17-2009, 04:30 AM
RE: Latest Entry [MySQL + PHP] - by wat - 12-17-2009, 10:22 AM
RE: Latest Entry [MySQL + PHP] - by manipulate - 12-17-2009, 11:28 PM
RE: Latest Entry [MySQL + PHP] - by wat - 12-18-2009, 12:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 789 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,313 10-10-2011, 01:00 PM
Last Post: Greyersting
  optimize mysql through a php script andrewjs18 7 2,813 10-05-2011, 06:31 PM
Last Post: John.
  Creating a simple PHP/MySQL login script ndee 16 9,524 05-14-2011, 02:18 AM
Last Post: モrainee
  Simple MySQL Tutorial Sly 4 1,100 05-14-2011, 01:53 AM
Last Post: Sly

Forum Jump:


Users browsing this thread: 1 Guest(s)