On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote:
> everything work as expected but not the part when the counter of a
> filename gets increased when the file have been requested.
>
> I don't see how since:
>
> if filename:
> #update file counter
> cur.execute('''UPDATE files SET hits = hits + 1, host = %s,
> lastvisit = %s WHERE url = %s''', (host, lastvisit, filename) )
Have you read these links yet?
http://sscce.org/
http://www.catb.org/esr/faqs/smart-questions.html
They will teach you how to successfully ask for help.
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list