python update mysql

How To Use Python To Update MySQL

In this post we will be updating our MySQL database using Python. #!/usr/bin/python print “Content-type: text/html\n\n” print “<html>” print “<head>” print “<title>Update Provider</title>” print “</head>” print “<body>” #GLOBAL VARIABLES USERNAME = ‘username’ PASSWORD = ‘password’ DB = ‘database’ import MySQLdb import os # Import modules for CGI handling import cgi, cgitb def init(): #read the […]

Continue Reading