liquidd
12-04-2003, 01:34 PM
Hello All,
Ive done a search on multiple table selection and still, nothing seems to be working.
Im not sure if my syntax is correct but here it is:
PHP:--------------------------------------------------------------------------------
$result = mysql_query("SELECT keith.job_num, chris.job_num FROM keith, chris WHERE job_num='$findProj'") or die("nogo" .mysql_error());
--------------------------------------------------------------------------------
I have about 14 tables, one for each employee. All cols in each table are the same.
What I need to do is, from each table, pull all the info from col named job_num where job_num = a passed variable ($findProj).
Ive tried many different variations of the code below and have gotten nothing. The code below produces the following error:
--Column: 'job_num' in where clause is ambiguous --??????
Any help would be great!
Thanks
:confused:
Ive done a search on multiple table selection and still, nothing seems to be working.
Im not sure if my syntax is correct but here it is:
PHP:--------------------------------------------------------------------------------
$result = mysql_query("SELECT keith.job_num, chris.job_num FROM keith, chris WHERE job_num='$findProj'") or die("nogo" .mysql_error());
--------------------------------------------------------------------------------
I have about 14 tables, one for each employee. All cols in each table are the same.
What I need to do is, from each table, pull all the info from col named job_num where job_num = a passed variable ($findProj).
Ive tried many different variations of the code below and have gotten nothing. The code below produces the following error:
--Column: 'job_num' in where clause is ambiguous --??????
Any help would be great!
Thanks
:confused: