MySQLdbd error. Perhpas it isn't installed?

Νίκος Γκρ33κ nikos.gr33k at gmail.com
Wed Mar 27 20:23:11 CET 2013


Even better:

try:
	sql = '''SELECT hits FROM counters WHERE url = %s''' % page
	print( sql )
	cur.execute( sql )
	data = cur.fetchone()
except MySQLdb.ProgrammingError as e:
	print ( "Query Error: ", dir( sys.exc_info()[1] ) )

========

sql statement seems okey...



More information about the Python-list mailing list