Hi,
I am building a simple search engine, well trying.
I will try to keep it simple...
The user (using a PHP form) types in their search criteria (text entry). Then I ensure the text has '%' either side.
What I need to do now is query the table 'myProducts' (it MAY return multiple results) and then take those results 'IDproduct' (values between 1 & 9999)
and query the field 'IDproduct' in 'myStock'. Also ensuring that I return unique 'IDstock' (no dupes).
I can do simple SQL queries, but how do I create and pass this array to the next SQL search?
The two tables:
TABLE NAME: 'myProducts'
FIELD NAME: 'IDproduct'
FIELD NAME: 'productName'
TABLE NAME: 'myStock'
FIELD NAME: 'IDstock'
FIELD NAME: 'IDproduct'
FIELD NAME: 'stockDate'
Thanks for any help,
HotShot