i’m having a problem with this query. I have a table with 9 fields, but i only want to update 1 of the fields on duplicate key. For some reason it’s updating all my fields…
if ($OLD_DATA[register] = ‘0’) {
$sql = "INSERT INTO card (pc, forcexport)
VALUES ('$NEWPC', '1') ON DUPLICATE KEY UPDATE forcexport='1'";
}