MySQL Forums
Forum List  »  PHP

JOIN 2 tables and filter results
Posted by: Armen Mardirousi
Date: May 06, 2014 12:26PM

I have setup a JOIN. However, the filtering does not seem to be working. All records show up...

SELECT *
FROM delMenu INNER JOIN suppliers ON delMenu.suppID=suppliers.suppID
WHERE delPC = colname AND colType = serviceTypeID

========
colname gets runtime value from: $_POST['Postal_Code']
colType gets runtime value from:$_POST['serviceType']

Am I approaching this correctly?

Options: ReplyQuote


Subject
Written By
Posted
JOIN 2 tables and filter results
May 06, 2014 12:26PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.