I have two queries which are pretty much exactly the same - just accessing different tables - they both use ORDER by column_name ASC.
Both queries are ordering based on a column of name fields - none of which are NULL.
This doesn't order the results alphabetically, but works fine otherwise:
$query_product_name = "select * from product where product_id LIKE '".$product_id."' ORDER BY product_name ASC";
And this does work:
$query = "select * from textile_category ORDER BY textile_category_name ASC";
The only difference is that the one that works doesn't have dynamic variable-base input.
I really need the product names to be ordered alphabetically - does anyone have any idea why it isn't working?
Many thanks for any assistance.