I am trying to show 20 records per HTML page; I am getting the following error:
sql undefined, limit = '0,20'
TypeError: float argument required
args = ('float argument required',)
The code that I have written is:
pagesize=20
form=cgi.FieldStorage(keep_blank_values=True);
show=int(form.getfirst("show","0"));
limit='%s,%s'%(show,pagesize)
sql='''select vid_ID,
Description,from
q.vid %s order by vid_id desc limit %s'''% (limit)
db.execute(sql); v=db.fetchall();
sql undefined, limit = '0,20'
TypeError: float argument required
args = ('float argument required',)
The code that I have written is:
pagesize=20
form=cgi.FieldStorage(keep_blank_values=True);
show=int(form.getfirst("show","0"));
limit='%s,%s'%(show,pagesize)
sql='''select vid_ID,
Description,from
q.vid %s order by vid_id desc limit %s'''% (limit)
db.execute(sql); v=db.fetchall();