Commit 54f373db authored by Nico Schallehn's avatar Nico Schallehn

test

parent f058fec6
......@@ -574,16 +574,17 @@ class Media {
$SQL = "UPDATE Filme SET".$update." WHERE imdbID = '".$Film["imdbID"]."';";
//$counterChange++;
if(!$CheckOnly){
echo " Ändere (bei ".$Film["imdbID"].") :".PHP_EOL.$changed.PHP_EOL;
$Ausgabe = " Ändere (bei ".$Film["imdbID"].") :".PHP_EOL.$changed.PHP_EOL;
echo $Ausgabe;
echo $SQL.PHP_EOL;
//TODO SQL Query wieder ausführen!! $mysqli->query($SQL);
file_put_contents("./phpTestout/update.txt", $SQL.PHP_EOL, FILE_APPEND);
}else{
echo " Unterschiede (bei ".$Film["imdbID"].") :".PHP_EOL.$changed.PHP_EOL;
$Ausgabe= " Unterschiede (bei ".$Film["imdbID"].") :".PHP_EOL.$changed.PHP_EOL;
echo $Ausgabe;
//echo "Nix geändert!".PHP_EOL;
file_put_contents("./phpTestout/update_CheckOnly.txt", $SQL.PHP_EOL, FILE_APPEND);
file_put_contents("./phpTestout/update_CheckOnly.txt", $Ausgabe.PHP_EOL.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