What's wrong with this code?:
I seem to get value='value' rather than key='value' :confused:Code:while (list($key,$val) = each($_POST)){
if ($key != 'action' && $key != 'id') {
$sql .= "$key='$val', ";
}
}
echo $sql;
Printable View
What's wrong with this code?:
I seem to get value='value' rather than key='value' :confused:Code:while (list($key,$val) = each($_POST)){
if ($key != 'action' && $key != 'id') {
$sql .= "$key='$val', ";
}
}
echo $sql;
bah! it was a form problem.