I have my row returning data, and I know I can grab the value of a field as 
long as I know what the field name IS like so
    row = db((db.squares.game_code==session.game_code) & 
(db.squares.row_num==row_vis)).select()
    winner= row[0].nine

but what if my field name is a variable like so?
    row = db((db.squares.game_code==session.game_code) & 
(db.squares.row_num==row_vis)).select()
    winner= row[0].[winning_col]
(I also tried the winning_col in () and '')

They throw syntax errors and I have found nothing via search & google, can 
anyone please advise?

-- 

--- 
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.


Reply via email to