I have a form for entering room information into a database. The information is Room Name, Room Width, Room Height, and Room Level. There are 12 sets of these fields for entering up to 12 rooms.
I am struggling to find a way to write each set as a record to the database. I am guessing that I create an array from the form information and then write each to the database but I am not sure how to do it. Any help would be greatly appreciated.
I don’t believe this helps me accomplish what I am trying to do.
My database has columns for RoomName, RoomWidth, RoomLength and RoomLevel. My form has fields for the same, repeated 12 times (to upload up to 12 different rooms).
I am thinking that I need to build a multi-dimensional array from the form data so that I can insert each row of data (RoomName, RoomWidth, RoomLength, RoomLevel) into the database, but I have no idea how to go about building the array from the data.
Ok, thanks for the help with the array. Now I am trying to write those values to the database an individual rows, if anyone can help I would appreciate it. Thanks.