Salve a tutti, non riesco a confrontare i valori di questo array
Con i valori presenti all'interno del database! Come dovrei fare?codice:$products = []; foreach (array_keys($match[2]) as $idx) { $tagliaprodotto = rtrim(substr($match[2][$idx],1)); $tagliaquantita = ltrim($match[3][$idx],'0'); $products[] = [ 'prodotto' => $tagliaprodotto, 'quantita' => $tagliaquantita, 'terminale' => $match[4][$idx] ]; }
codice:$sth = $pdo->prepare("SELECT * FROM tabella"); $sth->execute(); $row = $sth->fetchAll();

Rispondi quotando
rodotto, :quantita, :terminale, NOW())


