This page lists some PHP and MySQL snippets for Drupal:
Did you find this post helpful? Leave a comment below, and subscribe to my RSS feed.