Hi again laserlight,
My "problem" is, i have a database with 786 books, in al my books i have associated 1 category. Works just fine ! Now i want to add in some of the books 2,3, ..., categories.
Example,
Book A belongs to category A. - Like this works fine
And i want,
Book A Belongs to category A,B,C ...
tbl_product
pd_id --> primary/autoincrement
cat_id --> index
pd_titre --> index
...
And tbl_category
cat_id --> primary/autoincrement
cat_name --> unique
I tried to add 2 fields to my tbl_product, like cat_id2 and cat_id3 to add more categories, on same record. Like that i just add 1 record about 2 or 3 categories in 1 row. Works but comes out as a number, the category number, and i cant show it as text, as category name.
Comes like this, Book A - Roman - 32 - 0. I cant change that 32(in categorylist is humor) to the category name. And i dont know what 2 do !! Tried to change cat_id2 and cat_id3 as text, char, varchar but is awlays the category number that comes out. What m i doing wrong !?
Tried to explain better, but my inglish is not good as it should
Thnks again