Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting problem

Status
Not open for further replies.

Cokeman1974

Programmer
Jan 28, 2004
2
BE
I can't find how I can sort the following query by categories_description.categories_name, think it has to do with the .$id at the end:

$query = "SELECT categories.categories_id, categories.parent_id, categories_description.categories_name FROM categories_description INNER JOIN categories ON (categories_description.categories_id = categories.categories_id)where categories_description.language_id = 4 and parent_id=".$id;

Any help?

Thanks
 
to sort, just add:

... ." ORDER BY categories_description.categories_name"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top