Ik heb een vraag. Ik heb dit script.
$fetchcheck5 moet alle rows met datum door geven aan $check6 want hij moet alles bekijken.. En check 6 moet ook weer met al die datums naar die post gaan kijken. hoe kan ik dat doen?
Wie goed kan helpen krijg 0,5
[COLOR= #0000BB]<?php
$check5[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM forum_berichten_gelezen WHERE lidid = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]" AND catt = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$cat[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$fetchcheck5[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$check5[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$check6[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM forum_posts WHERE cat_id = "[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$cat[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]" AND date = date>"[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #0000BB]$fetchcheck5[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]] .[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[COLOR= #0000BB]$rowscheck6[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$check6[/COLOR][COLOR= #007700]);[/COLOR]
?> $fetchcheck5 moet alle rows met datum door geven aan $check6 want hij moet alles bekijken.. En check 6 moet ook weer met al die datums naar die post gaan kijken. hoe kan ik dat doen?
Wie goed kan helpen krijg 0,5

.. Kun je dan mis uitleggen hoe ik het beter kan doen dan mis een voorbeeld query 
