Hi;<br>I have this line:<br><br>  cursor.execute('select clientEmail from clients where client=%s', (string.replace(client, '_', ' ')))<br>  clientEmail = cursor.fetchone()[0]<br>  cursor.execute('select * from %s' % (client))<br>
<br>client = "Lincoln_Properties"<br>With the replacement, the interpreter complains that mydatabase.Lincoln doesn't exist. Therefore, the first line of code isn't putting the %s replacement in quotes, as I was told by you all it would. So I add quotes to it and the interpreter complains on the second line of code that it's unsubscriptable (because it's None). What gives?<br>
TIA<br>beno<br>