pulling info from 2 tables

A

Anonymous

Guest
Well, for two tables use 2 different queries and then deal with the results...
ps I hope that you check for the $_post['emp'], because if its emty, you are screwed.
but do use 2 queries.
 
Try this:

Code:
SELECT t1.f1, t2.f2 FROM t1,t2 WHERE t1.id=t2.id

where
t1,t2 -> table names
f1,f2 -> field names
id -> id field

try echoing the query and see if there is something wrong with it.
the syntax seem to be working
 
Back
Top