PHP makes grabbing and inserting data into a MySQL database a breeze. There are many, many, ways into doing this but here is a couple of the base ways to connect, insert, query, and close connections. Also a little help with comparison and selection SQL Statements.