Commit ef8df1c5 authored by Nico Schallehn's avatar Nico Schallehn

test

parent cc1e0b67
......@@ -563,8 +563,8 @@ class Media {
if(!(md5($Film[$key]) == md5($DataArr[$key]))) {
$update .= " ".($first?"":",").$key." = '".mysql_escape_string($value)."'";
$first = false;
$changed .= " ".$key." old: ".$Film[$key].PHP_EOL;
$changed .= " ".$key." new: ".$DataArr[$key].PHP_EOL;
$changed .= " ".$key." old: ".$Film[$key].PHP_EOL;
$changed .= " ".$key." new: ".$DataArr[$key].PHP_EOL;
}
}
}
......@@ -574,13 +574,13 @@ class Media {
$SQL = "UPDATE Filme SET".$update." WHERE imdbID = '".$Film["imdbID"]."';";
//$counterChange++;
if(!$CheckOnly){
echo "Ändere (bei ".$Film["imdbID"].") :".PHP_EOL.$changed.PHP_EOL;
echo " Ändere (bei ".$Film["imdbID"].") :".PHP_EOL.$changed.PHP_EOL;
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;
echo " Unterschiede (bei ".$Film["imdbID"].") :".PHP_EOL.$changed.PHP_EOL;
echo "Nix geändert!".PHP_EOL;
file_put_contents("./phpTestout/update_CheckOnly.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