I may add a note that people here (and anyone else thinking of asking this question) are probably the most helpful people I've seen around, I have asked questions in other coding based forums (blackberry, etc) and have had little to no response.
However, broad spectrum questions (as this is), asking us to do something from front to back (as this is) or asking us to DO your homework (as this is, especially thesis I may add) won't work.
Every person here started as a newbie, noob, rookie.. not a single person here looked at their first programming language and knew what they know now.
I will help you this much, I will give you some search engine tips to learn what you need:
1) PHP For Beginners
2) Intro to PHP
3) PHP with MySQL
3) PHP MySQL Tutorial
Once you read, and understand the concepts of your first PHP program, you can either buy hosting, or use a program called XAMPP - please, just read the website on it, very simple.. this is an Apache + PHP + MySQL and more all in one box, it will let you develop a Web Application right on your own PC/Mac/Linux System.
If you are having a specific problem, as in "I am getting this error (insert error here), here is my code (insert php code here)" many people will be glad to help you find the answer.
In addition, since this is for your thesis, a thorough understanding of the technology used would be recommended, as if I was your professor/teacher, I would ensure you know what your doing.
Best of luck, and I would recommend Googling Book Titles (from Amazon as pointed out, etc) and you can see reviews of those who have read it, it will give you a good idea which book is right for you.
Oh, for a note to the rest, I read half of a PHP book, but found trying to do it, and learning from my mistakes fast-tracked my learning.