[Crazys] Error Topic

Gestart doorRobertt25 reacties29 weergaven

26 berichten · pagina 2 van 2

Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Mijn queries kan ik snel terugvinden en zijn net zonder dat ik externe variabelen gebruik.
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/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]catogorie[/COLOR][COLOR= #007700]])) 
 {[/COLOR]
    [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inclube/config.php[/COLOR][COLOR= #007700]);[/COLOR]
 [COLOR= #0000BB]$cat[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]catogorie[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM clipjes WHERE categorie = $cat"[/COLOR][COLOR= #007700];[/COLOR]

    [COLOR= #0000BB]$ophalen[/COLOR] [COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/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/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Categorie niet gevonden?"[/COLOR][COLOR= #007700];

    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700])) 
    {[/COLOR]
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<iframe title="Randomhits YouTube Speler" class="youtube-player" type="text/html" width="480" height="390" src="http://www.youtube.com/embed/[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000]?rel=0&autoplay=1" frameborder="0"></iframe>[/COLOR][COLOR= #007700];
}}}[/COLOR]
?>


zo werkt hij nu bij mij. krijg alleen nog zwart beeld maar wel geluid. maar denk dat je daar wel zelf uitkomt..

weet niet of hij het nou nog precies doet ik heb aantal dingen moetten aanpassen aan eigen functies..

als je gaat naar:
www.netcreaties.nl/test.php?catogorie=test kun je het zien
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool schreef:
[COLOR= #0000BB]<?php[/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]catogorie[/COLOR][COLOR= #007700]])) 
 {[/COLOR]
    [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inclube/config.php[/COLOR][COLOR= #007700]);[/COLOR]
 [COLOR= #0000BB]$cat[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]catogorie[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM clipjes WHERE categorie = $cat"[/COLOR][COLOR= #007700];[/COLOR]

    [COLOR= #0000BB]$ophalen[/COLOR] [COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/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/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Categorie niet gevonden?"[/COLOR][COLOR= #007700];

    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700])) 
    {[/COLOR]
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<iframe title="Randomhits YouTube Speler" class="youtube-player" type="text/html" width="480" height="390" src="http://www.youtube.com/embed/[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000]?rel=0&autoplay=1" frameborder="0"></iframe>[/COLOR][COLOR= #007700];
}}}[/COLOR]
?>
zo werkt hij nu bij mij. krijg alleen nog zwart beeld maar wel geluid. maar denk dat je daar wel zelf uitkomt..

weet niet of hij het nou nog precies doet ik heb aantal dingen moetten aanpassen aan eigen functies..

als je gaat naar:
www.netcreaties.nl/test.php?catogorie=test kun je het zien

Erg bedankt! Heb je even 0,02 gegeven voor het helpen!
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
had niet gehoeven maar toch bedankt smile
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is het een mogelijk dat je titel van je youtube nummer automatisch er boven komt? dus heb je de code die zet je bijv:
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]youtubetitel[code][/COLOR][COLOR= #007700];[/COLOR] ?>[/code] 
even snel gemaakt?
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
wil je het uit de database laten laden of vanuit de youtube pagina??
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool schreef:
wil je het uit de database laten laden of vanuit de youtube pagina??
Nouja kijk ik heb in de database staan: [Youtubecode van nummer] is er een manier via youtube dat je ook zo de titel kan ophalen i.p.v. het nummer?
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool schreef:
ja het is mogelijk..
maar dan stuur ik je even hierheen:

http://stackoverflow.com/questions/1760231/how-do-i-get-the-title-of-a-youtube-video-if-i-have-the-video-id

ik heb hier zelf namelijk geen ervaring in..

Anders zou ik het gewoon laten opslaan in de database en dan uitlezen..

Bedankt, heb dit er van gemaakt maar laat die de titel niet zin ;-(

[COLOR= #0000BB]<?php[/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]catogorie[/COLOR][COLOR= #007700]])) 
 {[/COLOR]
    [URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]inclube/config.php[/COLOR][COLOR= #007700]);[/COLOR]
 [COLOR= #0000BB]$cat[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]catogorie[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM clipjes WHERE categorie = $cat"[/COLOR][COLOR= #007700];[/COLOR]

    [COLOR= #0000BB]$ophalen[/COLOR] [COLOR= #007700]=[/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/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/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Categorie niet gevonden?"[/COLOR][COLOR= #007700];

    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
    [COLOR= #007700]{[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ophalen[/COLOR][COLOR= #007700])) 
    {[/COLOR]
    [COLOR= #0000BB]$vidID[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]];[/COLOR]
    [COLOR= #0000BB]$url[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"http://gdata.youtube.com/feeds/api/videos/"[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$vidID[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$doc[/COLOR] [COLOR= #007700]= new[/COLOR] DOMDocument[COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$doc[/COLOR][COLOR= #007700]->[/COLOR]load[COLOR= #007700]([/COLOR][COLOR= #0000BB]$url[/COLOR][COLOR= #007700]);[/COLOR]
    [COLOR= #0000BB]$title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$doc[/COLOR][COLOR= #007700]->[/COLOR]getElementsByTagName[COLOR= #007700]([/COLOR][COLOR= #DD0000]"title"[/COLOR][COLOR= #007700])->[/COLOR]item[COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700])->[/COLOR]nodeValue[COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][<?= $title ?>] <br />
    <iframe title="Randomhits YouTube Speler" class="youtube-player" type="text/html" width="480" height="390" src="http://www.youtube.com/embed/[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR] [COLOR= #DD0000]?rel=0&autoplay=1" frameborder="0"></iframe>
    <br />[/COLOR][COLOR= #007700];
}}}[/COLOR]
?>
0
Berichten
515
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het is ook niet iets wat je gewoon kan kopieeren helaas.
Komt heel wat meer bij kijken..

Ik kan je hier helaas niet bij helpen...
0
Robertt

Lid · Topicstarter

Berichten
1.579
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Justafool schreef:
Het is ook niet iets wat je gewoon kan kopieeren helaas.
Komt heel wat meer bij kijken..

Ik kan je hier helaas niet bij helpen...

Oke ga er is naar kijken wink
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