Í
Íßêïò Ãêñ33ê
Ôç ÔåôÜñôç, 27 Ìáñôßïõ 2013 9:28:35 ì.ì.. UTC+2, ï ÷ñÞóôçò Chris Angelico Ýãñáøå:
The following works in python 2.6
is there a difefrence between the above and the follwong which works in python 3.x
I'am confused. Which one is the correct?
Also now http://superhost.gr seems to stuck in the following line which i try to open an acii file to slect a random line, please take a look.
cur.execute('''SELECT hits FROM counters WHERE url = ?''', (page, ))
This is what you need to do.
The following works in python 2.6
Code:
cur.execute( '''SELECT hits FROM counters WHERE url = %s''') , (page,)
is there a difefrence between the above and the follwong which works in python 3.x
Code:
cur.execute( '''SELECT hits FROM counters WHERE url = %s''' , (page,) )
I'am confused. Which one is the correct?
Also now http://superhost.gr seems to stuck in the following line which i try to open an acii file to slect a random line, please take a look.