I have some checkboxes, with values from 1-10, the value is placed under a column named "locationID". The problem is that if I tick in for instance 2 boxes, it only chooses to input the highest value of the two boxes, I want a new row for each box that I ticked.
My database structure:
Tablename: event
Columns: column1, column2.., locationID
Example of a checkbox php code:
<input class="checkboxarna" name="locationID" style="z-index: 1;position: relative;" type="checkbox" value="1">
MySQL query in PHP: http://pastebin.com/ri7LCib2
I have searched on Google and here but, because I'm not very good at PHP for the moment, so is it really hard for me to "understand someone elses code and transform it to work for me", hope you accept that.