View Single Post
Old 02-14-2008   #3 (permalink)
Telos
Eternal Being
 
Join Date: Feb 2006
Location: Finland
Posts: 239

You get the values just like you have used the values in join, by prefixing them with the correct table name. You can also use shorter names which makes it a bit clearer like
Code:
select u.user_id from users u
(not sure if that's the format for mysql)

For looping through the resultset I would use while but I guess something else works just fine too.
__________________
Telos is offline   Reply With Quote