reorder results of mysql query php -
i run mysql query gets specific results table. want print these results in 2 html tables. first ordered 1 column done putting order mysql query. want print results ordered different column. however, don't want run mysql query again slow.
so sum up: there way reorder results of mysql query?
(sorry if question unclear, first time using site.)
php has great sorting functions. make user-defined sorting function , use result set:
http://php.net/manual/en/function.usort.php
sorting php fast. faster 2nd query if result set not large.
Comments
Post a Comment