Content-type: text/html HelpZone
HelpZone Don't want to change.
Simmon! go back.
--> -->
<type 'exceptions.NameError'>
Python 2.6.6: /usr/bin/python
Fri Apr 26 04:08:40 2019

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/piford/public_html/cgi-bin/HelpZone/ in ()
   58               <input type="text" name="oldpass" required placeholder="Old password" class="form-control no-border">"""
   59 print(html1)
   60 changepassfunc.oldp()
   61 html2="""</div>
   62             <div class="list-group-item">
changepassfunc = <module 'changepassfunc' from '/home/piford/public_html/cgi-bin/HelpZone/changepassfunc.pyc'>, changepassfunc.oldp = <function oldp>
 /home/piford/public_html/cgi-bin/HelpZone/ in oldp()
   48     db = MySQLdb.connect("","piford_student","student123","piford_helpzone" )
   49     cursor=db.cursor()
   50     cursor.execute('SELECT * from cgitable where username="%s"'%(username,))
   51     rows = cursor.fetchall()
   52     for row in rows:
cursor = <MySQLdb.cursors.Cursor object>, cursor.execute = <bound method Cursor.execute of <MySQLdb.cursors.Cursor object>>, username undefined

<type 'exceptions.NameError'>: global name 'username' is not defined
      args = ("global name 'username' is not defined",)
      message = "global name 'username' is not defined"