Commit 25b64d3d authored by Nico Schallehn's avatar Nico Schallehn

test

parent 0d068b4c
......@@ -290,7 +290,7 @@ class Media {
$result = $mysqli->query("SELECT schauspielerID FROM Schauspieler WHERE name = '".$SchauspielerName."'");
if($result->num_rows>0){
$resultArr = $result->fetch_array();
return $resultArr["genreID"];
return $resultArr["schauspielerID"];
}
else{
$Query = "INSERT INTO Schauspieler (name, schauspielerID) VALUES('".$SchauspielerName."', '".$SchauspielerID."')";
......
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