MySQLdbd error. Perhpas it isn't installed?
Νίκος Γκρ33κ
nikos.gr33k at gmail.com
Wed Mar 27 22:19:27 EDT 2013
The following works in python 3.2
[code]
cur.execute( '''SELECT hits FROM counters WHERE url = ?''') , (page,)
[/code]
is there a difefrence between the above and the follwong which works in python 2.6
[code]
cur.execute( '''SELECT hits FROM counters WHERE url = ?''' , (page,) )
[/code]
Also whats better? use '%s' or '?' and why?
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.
More information about the Python-list
mailing list