[
From WebReference]
[This is a continuation of the excerpt from our previous installment from the book, PHP and MySQL Web Development.]
Inserting new items into the database is remarkably similar to getting items out of the database. You follow the same basic steps: make a connection, send a query, and check the results. In this case, the query you send is an INSERT rather than a SELECT.
The article continues at
http://www.webreference.com/programming/mySQL_and_php2/