Commit 8a8d89e0 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 984c4748
...@@ -645,12 +645,14 @@ class Media { ...@@ -645,12 +645,14 @@ class Media {
//$newSchauspieler = array_search($entry["schauspielerID"], $DataArr["Schauspieler"]); //$newSchauspieler = array_search($entry["schauspielerID"], $DataArr["Schauspieler"]);
//echo "Vergleiche:".$entry["role"]." mit ".$DataArr["Schauspieler"][$entry["schauspielerID"]][1].PHP_EOL; //echo "Vergleiche:".$entry["role"]." mit ".$DataArr["Schauspieler"][$entry["schauspielerID"]][1].PHP_EOL;
if(!($entry["role"] == $DataArr["Schauspieler"][$entry["schauspielerID"]][1])){ if(isset($DataArr["Schauspieler"][$entry["schauspielerID"]][1])){
//var_dump($newSchauspieler); if(!($entry["role"] == $DataArr["Schauspieler"][$entry["schauspielerID"]][1])){
$SQL = "UPDATE FilmSchauspieler SET role='".$mysqli->real_escape_string($DataArr["Schauspieler"][$entry["schauspielerID"]][1]). //var_dump($newSchauspieler);
"' WHERE imdbID = '".$entry["imdbID"]."' AND schauspielerID ='".$entry["schauspielerID"]."'"; $SQL = "UPDATE FilmSchauspieler SET role='".$mysqli->real_escape_string($DataArr["Schauspieler"][$entry["schauspielerID"]][1]).
"' WHERE imdbID = '".$entry["imdbID"]."' AND schauspielerID ='".$entry["schauspielerID"]."'";
file_put_contents("./phpTestout/updateSchauspieler.sql", $SQL.PHP_EOL, FILE_APPEND);
file_put_contents("./phpTestout/updateSchauspieler.sql", $SQL.PHP_EOL, FILE_APPEND);
}
} }
//exit; //exit;
......
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