I am trying to update mysql affiliate IDs, I have one update button.
I have something like this.
foreach($_POST['affid'] as $index_id => $value) {
$key = 'affId_'.$value;
$dosql = ("UPDATE dlbprog SET affId='$key' affId =".$value);
$doupdate = mysql_query($dosql);
}
Any help would be greatly appretiated
I don't quite know how to do this
dlbprog is the database name, affId is the database field, affid is the inputbox name.
There are several inputbox's and only one submit button.