Mijn php code doet het niet. Ik kijk denk ik over de fout heen ofzo. En ik word ook niet door de error wijzer.
Error:
Script:
Alvast bedankt.
Error:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:xampphtdocsscriptsklikindexx.php on line 24 Script:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]functies.php[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$sql_link[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT id, naam, banner, ip.toegevoegd, ip.aangepast, datum.toegevoegd, datum.aangepast, datum.begin, datum.eind, website.link, website.beschrijving, kliks.eind
FROM link"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$sql_kliks[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT ip.klik, datum.klik FROM kliks"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$links[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_link[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$kliks[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_kliks[/COLOR][COLOR= #007700]);[/COLOR]
?>
<table width="1000px" border="1px">
<tr>
<th>ID</th>
<th>Naam</th>
<th>Website.Link</th>
<th>Website.Beschrijving</th>
<th>Ip.Toegevoegd</th>
<th>Datum.Toegevoegd</th>
<th>Datum.Begin</th>
<th>Datum.Eind</th>
<th>Max kliks</th>
</tr>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR] [COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$links[/COLOR][COLOR= #007700]) ) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<tr>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<td>"[/COLOR][COLOR= #007700].[/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$link[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"</td>"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</tr>"[/COLOR][COLOR= #007700];
}[/COLOR]
?>
</table> Alvast bedankt.
Je query is inderdaad fout waardoor hij false wordt.


)