@Nelson T. you should also consider purchasing a book on PHP/MySql. It's pretty convenient for referencing. I have one I purchased a few years ago, and still look things up with it instead of searching on the internet; it's faster, and gives you the exact answer (or example) you are looking for,
There are hundreds. Which one do you like to use?