I have the following query:
$result = $mysqli->query('SELECT DISTINCT SKU_SIZE_PART1
FROM SKU_DATA
WHERE SKU_BRANDNAME = "'.$brand.'"
ORDER BY SKU_SIZE_PART1 DESC');
while( $row = $result->fetch_assoc()){
$sku_size1 = $row['SKU_SIZE_PART1'];
echo $sku_size1;
}
Basically what is happening is.. the order is all messed up. This is what comes up:
9.50, 8.75, 8.00, 7.50, 7.00, 37, 35, 33, 325, 32, 315, 31, 305, 30, 295
325 should come up first, then 315 then so on.
What can I do to make this happen?
SKU_SIZE_PART1?