Commit a1443889 authored by Nico Schallehn's avatar Nico Schallehn

test

parent f189598c
...@@ -216,10 +216,12 @@ class Media { ...@@ -216,10 +216,12 @@ class Media {
$update =""; $update ="";
$first = true; $first = true;
foreach ($newData AS $key=> $value){ foreach ($newData AS $key=> $value){
$update .= " ".($first?"":",").$key." '".$value."'"; $update .= " ".($first?"":",").$key." = '".$value."'";
$first = false; $first = false;
} }
$SQL = "UPDATE Filme SET".$update." WHERE imdbID = '".$Film["imdbID"]."'"; $SQL = "UPDATE Filme SET".$update." WHERE imdbID = '".$Film["imdbID"]."';";
file_put_contents("./phpTestout/update.txt", $SQL.PHP_EOL, FILE_APPEND);
echo $SQL.PHP_EOL; echo $SQL.PHP_EOL;
} }
...@@ -243,6 +245,8 @@ class Media { ...@@ -243,6 +245,8 @@ class Media {
$status = "Gesamtlaufzeit: ".sprintf("%02d:%02d:%02d", $H, $i, $s)."! Nicht gefunden: ".$counter.PHP_EOL.PHP_EOL; $status = "Gesamtlaufzeit: ".sprintf("%02d:%02d:%02d", $H, $i, $s)."! Nicht gefunden: ".$counter.PHP_EOL.PHP_EOL;
echo $status; echo $status;
file_put_contents("./phpTestout/update.txt", $status.PHP_EOL, FILE_APPEND);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment