Mijn queries kan ik snel terugvinden en zijn net zonder dat ik externe variabelen gebruik.
[Crazys] Error Topic
[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
Justafool schreef:zo werkt hij nu bij mij. krijg alleen nog zwart beeld maar wel geluid. maar denk dat je daar wel zelf uitkomt..[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] ?>
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!
had niet gehoeven maar toch bedankt 

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? wil je het uit de database laten laden of vanuit de youtube pagina??
Justafool schreef: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?wil je het uit de database laten laden of vanuit de youtube pagina??
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..
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..
Justafool schreef:maar dan stuur ik je even hierheen:ja het is mogelijk..
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]
?> 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...
Komt heel wat meer bij kijken..
Ik kan je hier helaas niet bij helpen...
Justafool schreef:Komt heel wat meer bij kijken..Het is ook niet iets wat je gewoon kan kopieeren helaas.
Ik kan je hier helaas niet bij helpen...
Oke ga er is naar kijken
