Displaying 1 result from an estimated 1 matches for "playermatchdata".
2006 Mar 07
0
Form fields and MySQL column name Association
...|-Minutes-| |-How Out-| |-Fielder-| |-Pitcher-| |-Runs-|
After they fill out this form, it has to submit all 10 rows into a
database table. The thing is, the column names in the table dont
associate with the form names...
I''ve tried something like:
@params = params[:playerclubseason]
@playermatchdata = Playermatchdata.new
@playermatchdata.PlayerID = @params[:HBTbatsman1]
@params = params[:playerclubseason]
etc...
But i keep getting nil for HBTbatsman, even though there is a value.
Is their anyway else to go about getting form fields to insert into
database columns with different names?
Any...