On Dec 27 2007, 5:25 pm, Ian Clark <[EMAIL PROTECTED]> wrote: > On 2007-12-27, SMALLp <[EMAIL PROTECTED]> wrote: > > > connectionString = {"host":"localhost", "user":"root", > > "passwd":"pofuck", "db":"fileshare"} > > dataTable = "files" > > conn = mysql.connect(host=connectionString["host"], > > user=connectionString["user"], passwd=connectionString["passwd"], > > db=connectionString["db"]) > > Just to let you know, that last line can be rewritten as: > > conn = mysql.connect(**connectionString) > > Ian
Try using cursor.fetchall() instead of cursor.fetchone() -- http://mail.python.org/mailman/listinfo/python-list