Ooooh, Ooooh, Ooooh.... My turn...
Try poking your head into the FREE online PHP and MySQL manuals.
Then put together some code, and come back here to seek some help in getting the code to work properly.
Ooooh, here's another FREE resource. Try your local public library. Hopefully, yours is as high quality as the one in the city where I live. If it doesn't have too many books on PHP and MySQL, you should be able to make requests. Either way, you wouldn't need to dig into books too much if you took the time to dig into the manual. Good luck with it.
The bottom line is this: Flatfile systems can be useful depending on the application, but in this case, this application... flatfiles are definitely NOT the way to go. Since you don't know what you are doing with flatfiles and MySQL, you'd better serve yourself by taking the time to learn MySQL from the start.