res=cursor.execute('SELECT LONG_URL, SHORT_URL FROM WEB_URL WHERE USERNAME=?',[userID])#Get all entries from the database, that are created by this user
response='<table id="t01">\n<tr>\n<th>Long URL</th>\n<th>Short URL</th>\n<th>Action</th>\n</tr>\n'#This is the layout of the table
response='<table id="t01">\n<tr>\n<th>Long URL</th>\n<th>Short URL</th>\n<th>Views</th>\n<th>Action</th>\n</tr>\n'#This is the layout of the table
try:
entriesList=res.fetchall()
forentriesinentriesList:#for every entrie in the database add a line to the table