Thank you tsinka. Works great. Currently with:
SELECT *
FROM EmpContacts AS ec, JCont AS jc, JobPosts AS jp
WHERE ec.EmpID=jc.E_ID AND jc.JP_ID AND jp.JPID = colname
Here are table/field names:
EmpContacts - has backround info, contact info for companies.
EmpContacts.EmpID - is primary to this table
JobPosts - contains multiple postings for each EmpContacts row.
JobPosts.JPID - is primary to this table
JobPosts.FK_ID - links to the primary EmpContacts.EmpID
JCont - has contact info for each of the individual JobPosts
JCont.JID - is primary to this table
JCont.JP_ID - contains the primary of JobPosts
JCont.E_ID -contains the primary of EmpContactsEmpID. This same id is used within jp.FK_ID, to link each job listing with ea. respective EmpContacts.
My question is about a way to use a SELECT statement based on a different value rather tha JobPosts.JPID = colname
please note: 'id-name' value, right below does equal jp.FK_ID, which does equal jc.E_ID which does equal ec.EmpID
I am trying to use along with the parameters:
colname -1 $HTTP_SESSION_VARS['id-name']
--Hope I've made clearer.