Commit 14b7aea0 authored by Nico Schallehn's avatar Nico Schallehn

test

parent a1443889
......@@ -216,9 +216,11 @@ class Media {
$update ="";
$first = true;
foreach ($newData AS $key=> $value){
if(($key == "rating") AND !($Film['rating'] == $newData["rating"])){
$update .= " ".($first?"":",").$key." = '".$value."'";
$first = false;
}
}
$SQL = "UPDATE Filme SET".$update." WHERE imdbID = '".$Film["imdbID"]."';";
file_put_contents("./phpTestout/update.txt", $SQL.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