Potresti fare anche una singola query (non so come hai impostato il $_POST['id'] ma si potrebbe togliere anche quello, comunque...):
Una cosa importante: OCCHIO a quello che metti dentro le tue query, se le lasci come sono e io dentro $_GET['lista'] ci mettoCodice PHP:UPDATE tabella SET VENDUTO = CASE
WHEN VENDUTO = '' THEN 'V'
WHEN VENDUTO = 'V' THEN ''
END CASE
WHERE ID = '1234'
(ad esempio) ti svuoto il database...Codice PHP:'; DELETE * FROM tabella; SELECT *'
![]()

Rispondi quotando
