playlist

Gestart doorLars11 reacties38 weergaven

12 berichten · pagina 1 van 1

Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Ik heb weer is een klein foutje:

[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]
<?xml version="1.0" encoding="UTF-8"?>  
<playlist version="1" xmlns="http://xspf.org/ns/0/">
    <title>hiphopking.nl</title>
    <trackList>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/config.inc.php[/COLOR][COLOR= #007700]);
    
{

{[/COLOR]
 [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM audio WHERE 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]
 [COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][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_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])) {[/COLOR]
  [COLOR= #0000BB]$titel[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700]->[/COLOR]titel[COLOR= #007700]);[/COLOR]
  [COLOR= #0000BB]$url[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700]->[/COLOR]url[COLOR= #007700]);
  }[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<track>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<title>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</title>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<location>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</location>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</track>[/COLOR][COLOR= #007700];
}
}[/COLOR]
?>
</tracklist>
</playlist>


Dat is de playlist en die playlist laadt deze player:

<embed src="mediaplayer.swf" allowfullscreen="true" flashvars="&amp;displayheight=0&amp;file=play.php?id=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]""[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR] ?>&amp;height=98&amp;width=270&amp;frontcolor=0xFFFFFF&amp;backcolor=0x252525&amp;lightcolor=0xFF9900&amp;autostart=false" height="98" width="270">


Alleen op 2 sites van me werkt hij wel maar op de laatste niet.
Ziet iemand het probleem ?
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Geeft ie geen error ofzo? emo
0
Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
nee niet meer eerst gaf hij wel errors maar die hebben we opgelost.
En nu geeft hij niks meer.
Maar bij deze is de ID wel in hoofdletters in de db kan dat ook problemen veroorzaken ?
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Welke output geeft je playlistbestandje? (dus die xml)
0
Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
zie

http://www.hiphopking.nl/play.php?ID=5


Wel de goede dus
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Je hebt dit ofzo:


dat klopt iig niet.
0
Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
waar zie je die ?
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Code van dat bestand:
<?xml version="1.0" encoding="UTF-8"?>  
<playlist version="1" xmlns="http://xspf.org/ns/0/">
    <title>hiphopking.nl</title>
    <tracklist></font>
<track><title>testjeeee</title><location>http://www.hiphopking.net/muziek/ezg/Hiphopking.nl - EZG - Ik Wil Je Pasen.mp3</location></track></tracklist>
</playlist>


Hierzo:
http://www.hiphopking.nl/play.php?ID=5

Font staat op regel 4 zoals je ziet.
0
Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
maar waar komt die font vandaan ?
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
includes/config.inc.php lijkt me.

Post die eens hier (zonder wachtwoorden enzo hea).
0
Lars

Lid · Topicstarter

Berichten
3.416
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
die font is weg maar werkt nog steeds niet
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Nja, dan weet ik het niet. emoJe PHP gedeelte klopt werkt; van Flash weet ik vrij weinig.
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