daten als geparst markieren

This commit is contained in:
Göran Heinemann 2020-03-06 21:17:17 +01:00
parent 2588173192
commit 9b157d0979
2 changed files with 11 additions and 0 deletions

View File

@ -44,4 +44,10 @@ foreach ($scans as $scan){
if($stmt->errorInfo()[0] != '00000' and $stmt->errorInfo()[0] != '23000' and $stmt->errorInfo()[0] != '22007')
var_dump($stmt->errorInfo());
}
$sql = "UPDATE `scans` SET `parsed`=1 WHERE id=?";
$stmt = $pdo->prepare($sql);
$stmt->bindParam(1, $scanid);
$stmt->execute();
}

View File

@ -43,4 +43,9 @@ foreach ($data as $scan){
if($stmt->errorInfo()[0] != '00000' and $stmt->errorInfo()[0] != '23000' and $stmt->errorInfo()[0] != '22007')
var_dump($stmt->errorInfo());
}
$sql = "UPDATE `scans` SET `parsed`=1 WHERE id=?";
$stmt = $pdo->prepare($sql);
$stmt->bindParam(1, $scanid);
$stmt->execute();
}