$sth = $dbv->prepare("INSERT INTO DL_SWIPE VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"); $sth->execute($row[0], $row[1], $row[2],$row[3],$row[4],$row[5],$row[6],$row[7], $row[8],$row[9],$row[10],$row[11],$row[12],$row[13],$row[14],$row[15],$row[16], $row[17],$row[18])"); # update: the line above can be changed to # $sth->execute(@row); # if @row has exactly 18 elements