![]() |
2nd table
Hi there,
Is it possible to make an query like: Table 1: id;nickname(unique);rights Table 2: id;email;nickname Now I want to select the email where rights equals to 3. Is it possible to write that in one single query? (The tables cannot be put together in one because thats an excisting system...) |
You want to look up what's called a 'join', ie; http://www.w3schools.com/Sql/sql_join.asp
PHP Code:
PHP Code:
|
Yeah, that should do it. THX alot :-)
|
| All times are GMT. The time now is 10:27 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0