I have a button like “copy selected rows” with this code
$sql_recopy =
“INSERT INTO iteprarig( numrig, codice, descri, descrb, descrl, riflegge, id_stapra_default, status_descri, id_tipdat, gg_prev, allegato_doc, allegato_img )
SELECT numrig, codice, descri, descrb, descrl, riflegge, id_stapra_default, status_descri, id_tipdat, gg_prev, allegato_doc, allegato_img
FROM iterig_temp WHERE XXXXXXX = 1
ORDER BY numrig
ON DUPLICATE KEY UPDATE dataua = NOW()”;
sc_exec_sql($sql_recopy);
I need to substitute the WHERE clause with ??? something . I think it would be a sistem variable {XXXX}
I did a youtube search without success. There was an old tutorial for a problem like this but it’s really for a beginning version 5 or 6 and quite everything is different from actual version and features.