If you’ve been looking for a simple python script to use with MySQL that you can use to expand upon for your next project, check this one out. It has error handling for the connection, error handling for the sql call, and loop iteration for the rows returned. Click here for the script: http://pastebin.com/H2NTNt3h
PlanetMySQL Voting: Vote UP / Vote DOWN