Re: [Tutor] numrows returning -1

2013-11-22 Thread Alan Gauld
On 22/11/13 22:08, Paul Steele wrote: I am getting a numrows count of -1 when I print numrows (see line 23 of the code). What does "-1" mean?I think my connection is working and my table has data. I don't know about MySQL but the sqlite3 module documentation says: --- As required by

[Tutor] numrows returning -1

2013-11-22 Thread Paul Steele
Hey all... I am getting a numrows count of -1 when I print numrows (see line 23 of the code). What does "-1" mean?I think my connection is working and my table has data. Here's my code... #!/usr/bin/python # -*- coding: utf-8 -*- import mysql.connector from mysql.connector import errorcod