On Sat, Oct 5, 2013 at 11:38 PM, Νίκος Αλεξόπουλος <nikos.gr...@gmail.com> wrote: > cur.execute('''INSERT INTO visitors (counterID, cookieID, host, city, > useros, browser, ref, lastvisit) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)''', > (cID, vip, host, city, useros, browser, ref, lastvisit) ) > ======================================= > The above code i wrote gives me the following error: > > > [Sat Oct 05 13:33:24 2013] [error] [client 108.162.229.114] File > "/home/nikos/public_html/cgi-bin/metrites.py", line 209, in <module> > [Sat Oct 05 13:33:24 2013] [error] [client 108.162.229.114] > cur.execute('''SELECT * FROM visitors WHERE counterID = %s and cookieID = > %s''', (cID, vip) )
No, I don't think it does give you that error! Nikos, you've been around this group a good while; why can you not learn to read an exception traceback? Find line 209, which (as Ned said) is the one to focus on, and look at it. If you can't figure it out yourself, at the VERY least do us all a courtesy and show us the actual code that's having the problem! ChrisA -- https://mail.python.org/mailman/listinfo/python-list