PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Last edited by Benjamin on Wed Aug 22, 2012 11:50 am, edited 1 time in total.
Reason:Added [syntax=php||htm||css||javascript||sql||etc] - Please use [syntax] tags when posting code in the forums! Thanks.
Hi christopher,
Thanks but I am afraid it doesnt work- It doesnt sort by 'Startdate' as expected- when i use the above code it starts from an event with Dec 2012 then Aug 2012 and so on.
I would like the array to be sorted by 'Startdate': I guess it is something to do with the date comparison!
Last edited by Benjamin on Thu Aug 23, 2012 6:47 am, edited 1 time in total.
Reason:Added [syntax=php||htm||css||javascript||sql||etc] - Please use [syntax] tags when posting code in the forums! Thanks.
vidhyakrish wrote:Thanks but I am afraid it doesnt work- It doesnt sort by 'Startdate' as expected- when i use the above code it starts from an event with Dec 2012 then Aug 2012 and so on.
I would like the array to be sorted by 'Startdate': I guess it is something to do with the date comparison!
If you search for "php date comparison" you will find many examples. Use that instead of the string/number comparison in the example.