Heey hallo!
Ik ben beetje aan het "spelen" met PHP ik heb nu dit:
Daar krijg ik Parse error: syntax error, unexpected T_STRING, expecting , or ; in C:xampphtdocsclippaginacategorie.php on line 22
Weet jij het probleem en volgens mij laat hij het clipje ook niet zien?
Ik haal het zo op index.php?p=categorie&catogorie=test
Ik hoop als ik duidelijk genoeg ben geweest
Ik ben beetje aan het "spelen" met PHP ik heb nu dit:
[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]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM clipjes WHERE categorie = "[/COLOR][COLOR= #007700].[/COLOR] [URL="http://www.php.net/intval"]intval[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]categorie[/COLOR][COLOR= #007700]]) .[/COLOR][COLOR= #DD0000]""[/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]0[/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="[/COLOR]Randomhits YouTube Speler[COLOR= #DD0000]" class="[/COLOR]youtube[COLOR= #007700]-[/COLOR]player[COLOR= #DD0000]" type="[/COLOR]text/html[COLOR= #DD0000]" width="[/COLOR][COLOR= #0000BB]480[/COLOR][COLOR= #DD0000]" height="[/COLOR][COLOR= #0000BB]390[/COLOR][COLOR= #DD0000]" src="[/COLOR]http[COLOR= #007700]:[/COLOR][COLOR= #FF8000]//www.youtube.com/embed/ .$row[code]. ?rel=0&autoplay=1" frameborder="0"></iframe>";[/COLOR]
?> Daar krijg ik Parse error: syntax error, unexpected T_STRING, expecting , or ; in C:xampphtdocsclippaginacategorie.php on line 22
Weet jij het probleem en volgens mij laat hij het clipje ook niet zien?
Ik haal het zo op index.php?p=categorie&catogorie=test
Ik hoop als ik duidelijk genoeg ben geweest


