To learn PHP you’ll need a LAMP server of some sort, a text editor, and a good study guide. I highly recommend buying a book because it’s an excellent UI while learning a language.
Using PHP you can update records in your MySQL tables. phpUpdate.php
While loops allow you to repeat code while a condition remains true.