I have a list of links and some text stored in database. I wish to print the text using the corresponding links using <a href
.
In a for loop, I tried to print the anchors this way :
for i in range(8):
#print url_list[i], question[i]
print "<a href=\"" + url_list[i] + "\">" + question[i] + "<\/a>" + "<br>"
The commented part prints the text but the second gives a blank page. This should print 8 links on the page.
What could be wrong ?