Muziek afspelen met playlist

Gestart doorLars20 reacties202 weergaven

21 berichten · pagina 2 van 2

Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dus jullie raden me een heel ander log-in systeem aan ?
0
Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nu zit ik voor op het profiel bezig en nu krijg ik dat de xml file niet valid is.

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]

    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) || ![/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]))
    {[/COLOR] 
    
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Vul een geldig ID in[/COLOR][COLOR= #007700]; 
        
    }[/COLOR]
    
    [URL="http://www.php.net/else"]else[/URL]
    
    [COLOR= #007700]{[/COLOR]

?>
<playlist version="1">

<trackList>

  [COLOR= #0000BB]<?php
$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                          SELECT
                            f.track_id,
                            
                            u.id,
                            u.titel,
                            u.link,
                            u.afbeelding
                        FROM
                            favo_tracks f,
                            us_tracks u
                        WHERE
                            u.id = f.track_id
                        AND
                            f.user_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]))
{[/COLOR]
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<track>n"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"t<location>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]link[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</location>n"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"t<image>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]afbeelding[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</image>n"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"t<annotation>"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"</annotation>n"[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</track>n"[/COLOR][COLOR= #007700];

}[/COLOR]
?>

</trackList>
</playlist>
[COLOR= #0000BB]<?[/COLOR]

    [COLOR= #007700]}[/COLOR]
    
?>


Of ligt het aan deze regel:

so.addParam(flashvars,&file=http://www.raputatie.nl/v2/?x=profielplay&id=".$_GET[id]."&playlist=right);


Iemand die daar het probleem in ziet?
0
Berichten
2.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hij crasht hem bij die &id=, hij denkt dat die bij de javascript hoort en niet bij de file

Geen idee wat je als fix zou kunnen doen
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
& gebruiken?
0
Berichten
2.950
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
& gebruiken?
Goeie emo
0
Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zo te zien zit hier het probleem in ben ik net achter gekomen:?x=profielplay&id=".$_GET[id]."
Heb hem al met amp; er achter geprobeert maar dat werkt ook niet.
Zou het kunnen dat hij die player niet met een ?x= linkje kan pakken ?
Zoja hoe los ik dit dan op zodat hij toch de id van de user aangeeft etc.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren