In order to start with phpmysql, you need to reserve your hosting by signing up here

Second you need to create database using database wizard.

Thirdly, you need to create mysql table using this sql command:

Then you can create a php script by pasting the following script and modify the connection info: