Commit 0bfbaefc authored by Nico Schallehn's avatar Nico Schallehn

test

parent 94c5f9be
...@@ -46,7 +46,12 @@ foreach ($Notindexed as $value) { ...@@ -46,7 +46,12 @@ foreach ($Notindexed as $value) {
else if(strpos($value[1], "(1080p)")){ else if(strpos($value[1], "(1080p)")){
$resolution = "1080p"; $resolution = "1080p";
} }
echo "SELECT * FROM Filme WHERE name = '".substr($value[1],0,strpos($value[1], "("))."' resolution = '".$resolution."'".PHP_EOL; if(strlen(substr($value[1],0,strpos($value[1], "("))) ==0){
$name = substr($value[1],0,strpos($value[1], "("));
}else{
$name = substr($value[1],0,strpos($value[1], "."));
}
echo "SELECT * FROM Filme WHERE name = '".$name."' resolution = '".$resolution."'".PHP_EOL;
//echo $value[0]." ".$value[1].PHP_EOL; //echo $value[0]." ".$value[1].PHP_EOL;
} }
\ No newline at end of file
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