I have an image gallery script that SHOULD sort out the images in ASC order (last uploaded picture will be displayed first). For some unknown reason, it doesn't do that.
After doing more scanning of this old code, the timestamp is in gimtime() format "my $timestamp = gmtime();" so it looks like "Sat Jun 25 01:32:22 2005". Is this format an acceptable timestamp that can be sorted in MySQL ASC or DESC?
I have to imagine it can't be and that would explain the problem. And if that were the case, is there a function to convert gmtime back into a sortable time?
In reply to GMtime stamping for MySQL by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |