RE: unsubscriptable object error

2005-08-18 Thread Tim Golden
[EMAIL PROTECTED] > getting an unsubscriptable object error on an if else statement > db = MSSQL.connect(server,login,pwd,database) > c = db.cursor() > c.execute(mySQL) > rows = c.fetchone() > #determine recipient > if str(rows[3]) == str(rows[4]): >

unsubscriptable object error

2005-08-18 Thread MCollins
getting an unsubscriptable object error on an if else statement db = MSSQL.connect(server,login,pwd,database) c = db.cursor() c.execute(mySQL) rows = c.fetchone()         #determine recipient if str(rows[3]) == str(rows[4]):         recipient = str(rows[0]) + " " + str(rows[1])