1 2 3 4 5 6
tags_cursor.execute ("""SELECT keywords FROM rcms_posts WHERE id='%s'""" % i[0]) for thetags in tags_cursor.fetchall(): pass print thetags thetags2 = ", ".join([tag for tag in thetags.split(' ')]) print thetags2
tags_cursor.execute ("""SELECT keywords FROM rcms_posts WHERE id='%s'""" % i[0])
for thetags in tags_cursor.fetchall():
pass
print thetags
thetags2 = ", ".join([tag for tag in thetags.split(' ')])
print thetags2