> 
> **Possible Duplicate:**  
> 
> [problem in many to many relationship](https://stackoverflow.com/questions/4792883/problem-in-many-to-many-relationship) 
> 
> 
> 

I have a table of movies and a table of categories. I would like to register one more category for a film. And a category for several films. That is, a relation N: N. How do I do that in php and Mysql?

For example: 
Categorie 1 -> Movie 1
 and Movie 2

Movie 2 -> Categorie 1
 and Categorie 2