Let’s say you have a form that passes a multi-dimensional array to the server connect. The question is how to handle the update to the database with the multidimensional array values in the server connect.
From data: $_POST(rec_array)
Sample array data:
‘rec_array’ =>
0 =>
42 => ‘1’
1 =>
38 =>‘0’
2 =>
43 =>‘1’
So the numbers (42, 38, 43) are IDs for rows in a database table. The “1” and “0” are status values for those IDs. Need to be able to loop through the IDs and update the status values. What does this look like in the server connect? I’m not sure how to access the correct level of the array in the database query.
Community Page
Last updated:
Last updated: