Jump to content

Got id, not name


Thierry

Recommended Posts

I got a table with a list of names (and their ids) and another table which has a field that contains some of those IDs.
When I want to ORDER BY the IDs in table 2, it (naturally) orders by number. (1,2,3...).
What I want, is it to order by the names from table 1 instead althought only the IDs are in table 2.
It was something in a query with AS but I cant seem to find it again.
Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/18878-got-id-not-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.