This is my own secure version of the ribbit tutorial in net.tutsplus.  I added helpers and magicquotes to help against sql injections, and I turned it over to PDO for a more secure approach.