I have created a CGI webpage with a search box. My script queries an sqlite database with the input from the search box.
Now, I want to display (on my webpage) all columns of the rows that matched the search, but when I do the following:
query = raw_input(desc)
query = '%' + query + '%'
cursor.execute("SELECT * from Table WHERE Column LIKE ?", (query,))
print cursor.fetchall
the webpage only displays the query itself - no results from the database.
Any ideas how I can get the results to display?
fetchalland not only reference it.