MYSql, CGI web page search code not working

Fred fredg at fastmail.fm
Sat Jan 28 11:46:33 EST 2006


print MySQLdb.paramstyle returns: format

I found one example like this:

cursor.execute('''Select * from phone where name=%s order by
name''',(name))

But I get this in my Apache error log:
NameError: name 'name' is not defined

Like my last problem I posted, I am sure it is something very simple
that I am missing!!
Fred




More information about the Python-list mailing list