I have two mysql tables "category" and "applications" where the "applications" table referenced "category".
my "applications" table looks like
id apps category
1 adobe reader 1&4&6&10
2 photoshop cs3 4&6&7&6
my "category" table looks like
id category
1 utilities
2 windows
3 linux
4 mac
5 multimedia
And so on ..
Obviously one application can have multiple categories, so my problem here is trying to select applications where a category is present. I have tried
$query4 = "SELECT * from applictions Where category = '6';
But it only selects applications that has 6 as their first category e.g 6&5&1, so if i had an application "chrome browser" with "categories 5&3&6", it won't be selected.