I can find a longer way around my problem, but when I was doing a lot of asp/MS SQL stuff I sued to do write some pretty specific queries. I tried this through phpMyAdmin and received syntax errors. I guess what I want to know more than anything is, is it possible in php/mysql?
SELECT userpermissions.location_id ,locations.loc_name FROM locations WHERE userpermissions.location_id IN (SELECT userpermissions.userid FROM userpermissions WHERE userpermissions.userid = '4')
like I said, I can get there in a round about way, but it seams something like this should be possible.
Thanks in advance,
Charlie
SELECT userpermissions.location_id ,locations.loc_name FROM locations WHERE userpermissions.location_id IN (SELECT userpermissions.userid FROM userpermissions WHERE userpermissions.userid = '4')
like I said, I can get there in a round about way, but it seams something like this should be possible.
Thanks in advance,
Charlie