Commit 32c53dec authored by Nico Schallehn's avatar Nico Schallehn

test

parent 67e4f900
......@@ -240,6 +240,8 @@ class Media {
if($mysqli->error != ""){ echo "Mysql-Fehler: ".$mysqli->error.PHP_EOL; return false;}
//$ret->num_rows
$Querys= array();
$keys = array();
$values = array();
foreach ($DataArr as $key => $value) {
if(in_array($key, array("Genre", "Schauspieler")) ){//TODO hier weiter!!
//echo " ".$key." => '".implode("|", )."'".PHP_EOL;
......@@ -262,9 +264,13 @@ class Media {
}
}
}else{
$keys[] = $key;
$values[] = $value;
echo " ".$key." => '".$value."'".PHP_EOL;
}
usleep(500);
$Query = "INSERT INTO Filme (".implode(",", $keys).") VALUES (".implode(",", $values).")";
echo PHP_EOL.$this->Console->getColoredString("Query", "light_gray", "green")." ".$Query.PHP_EOL;
}
foreach ($Querys as $Query) {
echo PHP_EOL.$this->Console->getColoredString("Query", "light_gray", "green")." ".$Query.PHP_EOL;
......
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