http://www.quate.net/newsnet/read.php?id=10This is the second version of my MySQL via PHP Cheat Sheet, which gives bare-to-the-bone MySQL blocks for PHP programmers. These can easily be copied and pasted into your code, then modified to meet your needs.