A: 

Sounds like you need some help getting started with MySQL, and PHP's interface to MySQL.

You might find the W3Schools' PHP MySQL Introduction useful.

Dominic Rodger