No. the zip file is working. I tested it.
But I tried this also :
class Eb_db:
def __init__(self):
try:
connection = MySQLdb.connect(host="localhost",
user="swan", passwd="swan", db="swan" )
cursor = connection.cursor()
cursor.execute( "SELECT * FROM Table1 " )
except MySQLdb.OperationalError, message:
errorMessage = "Error %d:\n%s" % (message[ 0 ], message[ 1 ] )
return
else:
self.data = cursor.fetchall()
self.fields = cursor.description
cursor.close()
connection.close()
( From tutorial :
http://www.serpia.org/blog/2007/oct/...-mysql-python/ )
But the code doesnot work. And most frustating is the fact that no error is generated. It just shows the same black and white page saying some error has occured in the cgi script. Where the error occured, What is the type of error, Why the error occured....Nothing.
