![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: problem with getting info from 2 tables in PHP / MySQL
From: Sergej Andrejev <SAndrejev@gmail.com>
Date: Wed Aug 03 2005 - 01:36:48 CEST
Recently I had a cource in university about DBMS and I think you should
TABLE login(user_id, username, password, school_id)
then TABLE shools(school_id, school_name, other_info)
and finaly TABLE shools(job_id, school_id, other_info)
Now you can login by selecting user from login table like this
To limit your select to one school try
Good luck
|