I have an array of text boxes which I Have named using a variable(each text box has an unique name). I want to get the data in these text boxes with it's ID and store it in a database. I tried this using the following code but it didn't work.
if($_GET['btn1']=="Submit"){
for ($p=0;$p<12;$p++){
$qty=$_GET['text$p'];
mysql_query("UPDATE model SET column$m='$qty' WHERE `ModelName`='$rt'");
}
}
I'm a newbie to PHP. Any idea would be great. Thanks.