After reading the book, not all parts just the part i am interested in, I changed all database php programming way to PDO. It looks way better and cleaner and I finally made the CRUD.
It was very difficult though, even to explain. I had to mention Sessions, which if activated, will enable you the entire crud like the admin. So basically, it was not a beginner thing and I am still reading the book, since it has a lot of other info I never knew off.
Thank you all for the help and happy new year!
Note: If anyone thinks of something, please reply!