Narazel jsem presne na tohle. Podle me dela "neco %s" % promenna proste textovy replacement pythonu a nikde to zadne uvozovky nepridava. Pokud se bavime o MySQLdb rozhrani, melo by to byt "neco %s", promenna (<- carka misto procento). Pokud jsem uplne mimo, opravte me prosim.<br>
<br>Marek<br><br><div class="gmail_quote">2009/3/19 azurIt <span dir="ltr"><<a href="mailto:azurit@pobox.sk">azurit@pobox.sk</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mimochodom, podla toho, ako to ten clovek pouziva, to vyzera, ze bud pouziva modul _mysql alebo pouziva MySQLdb avsak blbo. Malo by to byt takto:<br>
<br>
db_curr.execute("SELECT * FROM users WHERE name='root' AND password=%s", (password<br>
,) )<br>
<div class="im"><br>
<br>
</div></blockquote></div>