I've written the following piece of python code
Anyway the error I'm getting is
TypeError: not enough arguments for format string
I've counted the parameters several times, and it looks right to me?
PHP:
self._cursor.execute("""INSERT INTO PROGRAMME(GENREID,PROGTITLE,SUBTITLE,EPISODE,YEAR,DIRECTOR,PERFORMERS,FILM,WIDESCREEN,
BNW,STARRATING,CERTIFICATE,DESCRIPTION) VALUES(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)""",
[(genreId,tempDict["PROGTITLE"],tempDict["SUBTITLE"],tempDict["EPISODE"],tempDict["YEAR"],
tempDict["DIRECTOR"],tempDict["PERFORMERS"],tempDict["FILM"],tempDict["WIDESCREEN"],tempDict["BNW"],
tempDict["STARRATING"],tempDict["CERTIFICATE"],tempDict["DESCRIPTION"])])
Anyway the error I'm getting is
TypeError: not enough arguments for format string
I've counted the parameters several times, and it looks right to me?
Last edited: