A classic example of simple mysql and php usage implementing the PDO extension.