[Tutor] SQL Queries For MySQL

2006-10-11 Thread Faran Uddin
i m running a mysql database, i create the connections and such using MySQLdb.   someone told me that queries like    query = "SELECT * FROM DB WHERE NAME = %s" % (name) cursor.execute(query)   thats the syntax that i use, but someone told me not to use it, i m new to the db accessing thing, so if

[Tutor] Python CGI Script

2006-09-20 Thread Faran
I Have a CGI Script Which is working perfectly when run from the python interpreter, i m using the Content-type: application/x-www-url-form-encoded , i use it to send data from flash apps to python script. i checked the script with content-type: text/html , and browsers printed the output perfe