$value, 'playlists' => PlayList::getAllFromUserVideo($_REQUEST['users_id'], $value, false)]; } echo json_encode($rows); } else { $row = PlayList::getAllFromUserVideo($_REQUEST['users_id'], $_REQUEST['videos_id'], false); echo json_encode($row); } //mysqlCommit();