What is the max length of an PHP array .. My requirement is
There are about 4000 movies in my database and there are so many users , now 1500 ( increasing) . Each member can rate the movie only once.
So I made a row in my user table that will store in which movies user rated. I m saving that in the following format
user_id | rated_films
-----------------------------------------
12 | 1111,1025,3541,2354,1584,3691,2451
Each time when an user hit of rating button I will check with this column ..
Is it the correct way. And I am wondering if I made a separate table for this rating like
user_id | Film_id
---------------------
12 | 10245
12 | 20145
Is thhis will hang the process of the application ? Suppose if all users will rate all the movies
Please help me with the correct code
Thanks
memory_limit. so i'd prefer second approach since it's much better for joining tables and putting some logic into sql