Hi there,
I have a product database that allows products to be listed by application.
for example,
A garden 'Spade' could be listed under 'garden Tools', 'digging equipment','hand tools' etc.
I have a lookup table that lists all of these application categories and assigns an ID number to them
e.g.
gardentools - 1
diggingeq - 2
handtools - 3
so... a my product record has field called 'application' with the array of applications listed in it (these come from a multi-select box)
product_name prod_application
Spade 1,2,3
Pitch Fork 1,3
Garden Hose 1
with me so far?
So my question is, if I want to run a query that tests the application field ...
what is the MySQL syntax to check if a certain number is present in the applciation field?
e.g. select all the hand tools...
SELECT * FROM PRODUCTS WHERE prod_aplication .............. '3'
SELECT * FROM PRODUCTS WHERE prod_aplication CONTAINS '3' ??????
can anyone help?
cheers,
Mitch.