class SomePage: def GET(self,name): conn = sqlite3.connect('./DB/ershou.db') LjDB = conn.cursor() searcher = web.input() DBsearch = LjDB.execute("select * from caiji where post like '%%%s%%'"%(searcher)) for ss in DBsearch: print ss[1], print ss[2] return searcher.name
ERROR: OperationalError: near "name": syntax error