Jump to content

how come this query wont order by date


kevinkhan

Recommended Posts

Well, you are ordering by age, which is not a date, and you also didn't post any information about what result you are getting and what your expected result should be.

 

The above is correct, I suspect you would need to do the following:

 $order = ' ORDER BY `dateOfBirth`;';

 

You would do the following to reverse the order (youngest first):

 $order = ' ORDER BY `dateOfBirth` DESC;';

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.