Commit ed164b66 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 4353d819
......@@ -640,13 +640,17 @@ class Media {
//var_dump($DataArr["Schauspieler"][$entry["schauspielerID"]]);
//exit;
//$newSchauspieler = array_search($entry["schauspielerID"], $DataArr["Schauspieler"]);
echo " Update Schauspielerrollennamen ...";
echo "Vergleiche:".$entry["role"]." mit ".$DataArr["Schauspieler"][$entry["schauspielerID"]][1].PHP_EOL;
if(!($entry["role"] == $DataArr["Schauspieler"][$entry["schauspielerID"]][1])){
//var_dump($newSchauspieler);
echo "UPDATE FilmSchauspieler SET role='".$mysqli->real_escape_string($DataArr["Schauspieler"][$entry["schauspielerID"]][1]).
"' WHERE imdbID = '".$entry["imdbID"]."' AND schauspielerID ='".$entry["schauspielerID"]."'".PHP_EOL;
$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);
}
exit;
echo "done!".PHP_EOL;
//exit;
}
......@@ -656,7 +660,7 @@ class Media {
exit;
//exit;
//$fehlerglobal .= $fehler;
//echo $fehler;
if(!$first){
......
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