MySQLdb

2009-11-22 Thread Kill Joy
Hi all. I have a mod_python script with two query: cursor = db.cursor() sql = 'SELECT * FROM users where username=\'' + username +'\'' cursor.execute(sql) result = cursor.fetchall() num = int(cursor.rowcount) if num == 0 : sql2 =

Re: MySQLdb

2009-11-22 Thread Kill Joy
On 22 Nov, 16:00, Gerald Walker geraldwalk...@gmail.com wrote: Kill Joy wrote: Hi all. I have a mod_python script with two query:    cursor = db.cursor()    sql = 'SELECT * FROM users where username=\'' + username +'\''    cursor.execute(sql)    result = cursor.fetchall()    num