A ver, de la forma en que te expliqué en la respuesta anterior, separas esa query string y obtienes cada dato para poder aplicarlo en la sentencia SQL, de modo que solamente te queda insertar los valores.
Código PHP:
Ver original$filter = "select_time=1&grade1=1&grade2=2&grade3=3&genre5=5&genre19=19&language0=0";
foreach ($array1 as $cadena){
$array2[$clave] = $valor;
}
$select_time = $array2["select_time"];
$grade1 = $array2["grade1"];
$grade2 = $array2["grade2"];
$grade3 = $array2["grade3"];
$genre = $array2["genre5"];
$genre1 = $array2["genre19"];
$language = $array2["language0"];
$query_movies = "SELECT * FROM tblmovies
WHERE
(tblmovies.grade = $grade1 OR tblmovies.grade = $grade2 OR tblmovies.grade = $grade3)
AND (tblmovies.genre = $genre OR tblmovies.genre = $genre1)
AND tblmovies.language = $language
AND tblmovies.select_time = $select_time";
Inténtalo así y nos dices cómo te fue, saludos.