I'm new to web developing and I'm trying to learn web developing by doing projects .
I decided to build web site that you can search name of a book and result will be list of who users read this book .
I know this is not useful and just want to learn
My problem is that i don`t know how to store list of books that users read in database .
I just find this two ways by myself to make database that can do this for me but i'm sure that this are not fastest way .
1-I can store them all in one table with readers's ID and very soon they will become too many rows and makes my site slow
2-I can make a table for each user and then search all of tables for one specific book and then i can return name of owners of the table which contain that book and i think searching whole tables of my DB is very slow too.
I will really appreciate any one who can answer my question . I'm really stuck at this point of my site ;)