Unix Technical Forum

phpformgenerator

This is a discussion on phpformgenerator within the MySQL forums, part of the Database Server Software category; --> Hi; I am using phpformgenerator and it works great, but how can I make mysql to sort the databased ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 09:33 AM
jt9d@excite.com
 
Posts: n/a
Default phpformgenerator

Hi;
I am using phpformgenerator and it works great, but how can I make
mysql to sort the databased on dates. I need to make sure that the
latest date is on top of the page.
Thanks
M.J


DATE
FLIGHT NUMBER
TAIL NUMBER
GATE
DELAY
LOG GEN
RECALL TIME

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 09:33 AM
Peter H. Coffin
 
Posts: n/a
Default Re: phpformgenerator

On 11 Nov 2006 20:32:49 -0800, jt9d@excite.com wrote:
> Hi;
> I am using phpformgenerator and it works great, but how can I make
> mysql to sort the databased on dates. I need to make sure that the
> latest date is on top of the page.
> Thanks
> M.J
>
>
> DATE
> FLIGHT NUMBER
> TAIL NUMBER
> GATE
> DELAY
> LOG GEN
> RECALL TIME
>


order by descending then.

--
59. I will never build a sentient computer smarter than I am.
--Peter Anspach's list of things to do as an Evil Overlord
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 09:34 AM
Michael Austin
 
Posts: n/a
Default Re: phpformgenerator

jt9d@excite.com wrote:

> Hi;
> I am using phpformgenerator and it works great, but how can I make
> mysql to sort the databased on dates. I need to make sure that the
> latest date is on top of the page.
> Thanks
> M.J
>
>
> DATE
> FLIGHT NUMBER
> TAIL NUMBER
> GATE
> DELAY
> LOG GEN
> RECALL TIME
>


first of all, I certainly hope that your field names don't include spaces. That
can be very nasty if you ever decide to move it to a real database engine.

select col1,col2... from table <where clause> order by date desc;


--
Michael Austin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:12 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com