Possibly in the controller: video_url = db([query for record]).select().first().youtube_link
Then in the view: <iframe src="{{=video_url}}" frameborder="0" allowfullscreen></iframe> Anthony On Sunday, September 1, 2013 11:35:07 AM UTC-7, Arjit Srivastava wrote: > > Hi, > > I am fairly new to web2py. For starters, I have a table, which contains a > filed called the "Youtube Link", and all I want to do is: > > <iframe src="http://www.youtube.com/embed/x1w8hKTJ2Co" frameborder="0" > allowfullscreen></iframe>) > > Instead of hardcoding the youtube video itself, I want it to pick up the > link from an entry in a database. > > Anyone? > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.