I just started to play around with python, and i really like it. I am able to connect to my database using pydobc and print the results. However, i need help taking the next step to placing the information in a table in a 'form'
import pyodbc
connection = pyodbc.connect(MY STRING)
cur = connection.cursor()
cur.execute("select top(10) May07Control.seq, May07Control.member from dbo.May07Control")
for row in cur:
print "member: %s"% row.member
print "seq: %s"% row.seq
##OR the one-line way
cur.execute("select May07Control.seq, May07Control.member from dbo.May07Control")
resultList = [(row.member, row.seq) for row in cur]
print HTML.table(resultList)