I'm trying to run the following search query:
$query =
sprintf ("SELECT itemNumber, thumbnailURL, title, description, price
FROM apparel,hats
WHERE apparel.title OR apparel.descrip tion OR hats.title OR
hats.descriptio n
LIKE '%s'",
$_POST['tfSearch']);
but it returns this error:
"Column: 'itemNumber' in field list is ambiguous"
Both "apparel" and "hats" tables share the same columns specified in the
SELECT clause.
What I'm I missing?
Frank H.
Austin, TX
$query =
sprintf ("SELECT itemNumber, thumbnailURL, title, description, price
FROM apparel,hats
WHERE apparel.title OR apparel.descrip tion OR hats.title OR
hats.descriptio n
LIKE '%s'",
$_POST['tfSearch']);
but it returns this error:
"Column: 'itemNumber' in field list is ambiguous"
Both "apparel" and "hats" tables share the same columns specified in the
SELECT clause.
What I'm I missing?
Frank H.
Austin, TX
Comment