Update dynamic input to mysql via php

I have dynamic form like below.\[code\]<form action="edit.php" method="post"><tr> <th scope="row" class="specalt">Product A</th> <td class="alt"><input class="input2" type="text" name="s_8" value="http://stackoverflow.com/questions/3874822/100" /></td> <td class="alt"><input class="input2" type="text" name="m_8" value="http://stackoverflow.com/questions/3874822/100" /></td> <input type='hidden' name='id_8' value='http://stackoverflow.com/questions/3874822/8' /> </td> </tr><tr> <th scope="row" class="specalt">Product B</th> <td class="alt"><input class="input2" type="text" name="s_9" value="http://stackoverflow.com/questions/3874822/234" /></td> <td class="alt"><input class="input2" type="text" name="m_9" value="http://stackoverflow.com/questions/3874822/23" /></td> <input type='hidden' name='id_9' value='http://stackoverflow.com/questions/3874822/9' /> </td> </tr><input type="submit" name="submit" value="http://stackoverflow.com/questions/3874822/Edit" /> </form>\[/code\]The \[code\]name="s_9"\[/code\], \[code\]name="m_9"\[/code\], \[code\]name='id_9'\[/code\] is dynamic which can be any id on the last according to current input.Question How to save this input to mysql? because all input will store to different table What should i code into edit.php?
 
Back
Top