Hey, Abdelrahman, that's great! It's so satisfying to finally solve a problem, isn't it?
Thanks for coming back and reporting what happened. As for any help I provided, you are very welcome! This is what these forums are for.
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!