MySQL Forums
Forum List  »  PHP

Re: JOIN 2 tables and filter results
Posted by: Rick James
Date: May 08, 2014 09:45AM

$e_colname = mysqli_real_escape_string($_POST['Postal_Code'] );
$e_colType = mysqli_real_escape_string($_POST['serviceType'] );
$query = "SELECT *
FROM delMenu INNER JOIN suppliers ON delMenu.suppID=suppliers.suppID
WHERE delPC = '$e_colname' AND '$e_colType' = serviceTypeID";

If this does not suffice, please provide
SHOW CREATE TABLE suppliers;
SHOW CREATE TABLE delMenu;

(Your names are confusing.)

Options: ReplyQuote


Subject
Written By
Posted
Re: JOIN 2 tables and filter results
May 08, 2014 09:45AM


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.