function IsChecked($chkname, $connection, $movID) { if (!empty($_POST[$chkname])) { foreach ($_POST[$chkname] as $value) { $delsql = 'delete from genre where movieID="' . $value . '"and genre="' . $genre . '";'; deleteGenre($delsql, $connection); } } }
function IsChecked($chkname, $connection) { if (!empty($_POST[$chkname])) { foreach ($_POST[$chkname] as $value) { list($keyid, $keygenre) = explode('|', $value); $delsql = 'delete from MovieGenres where MovieID="' . $keyid . '"and Genre="' . $keygenre . '"'; deleteGenre($delsql, $connection, $value); } } }
} elseif ($action == 'save') { save(); } elseif ($action == 'genreStructure') { genreStructure(); } elseif ($action == 'editGenreStructure') { editGenreStructure(); } elseif ($action == 'saveGenreStructure') { saveGenreStructure(); genreStructure(); } elseif ($action == 'addGenre') { addGenre(); } elseif ($action == 'saveAddGenre') { saveAddGenre(); genreStructure(); } elseif ($action == 'deleteGenre') { deleteGenre(); genreStructure(); } elseif ($action == 'blacklist') { blacklist(); } elseif ($action == 'saveBlacklist') { saveBlacklist(); blacklist(); } else { message(__FILE__, __LINE__, 'error', '[b]Unsupported input value for[/b][br]action'); } exit; // +------------------------------------------------------------------------+ // | Genre tree | // +------------------------------------------------------------------------+ function genreTree($genre_id, &$genre_id_array, &$genre_array) {