[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]koop[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$items_check[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM belcredits_winkel WHERE id="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]koop[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$item_check_koop[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$item_check[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]// 15[/COLOR]
[COLOR= #0000BB]$item_check_get[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$item_check[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]//16[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$item_check_get[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #DD0000]0[/COLOR][COLOR= #007700]) {[/COLOR]
?> dag leden ik heb dit stukje code en ik snap gewoon niet wat er wis is
dit is de error
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, null given in C:xampplitehtdocswinkel.php on line 15
Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:xampplitehtdocswinkel.php on line 16 (edit door Lennard: duidelijkere titel)