clamum
Lifer
I'm doing two SELECT statements (combined by a UNION operation) to get a bunch of records from a MySQL database.
The thing I'm interested in sorting is a price field. It's defined as a VARCHAR because users may enter things like OBO or FIRM after the price.
However, the sort I'm doing does not work. I want it to display highest price to lowest price. The code is below.
I'm wondering if sorting the values in PHP instead of in the MySQL query would work? If so, how would I do this after doing the $result = mysql_query($sql) statement?
Thanks for any help.
The thing I'm interested in sorting is a price field. It's defined as a VARCHAR because users may enter things like OBO or FIRM after the price.
However, the sort I'm doing does not work. I want it to display highest price to lowest price. The code is below.
I'm wondering if sorting the values in PHP instead of in the MySQL query would work? If so, how would I do this after doing the $result = mysql_query($sql) statement?
Thanks for any help.