Hallo,
Ik heb een GPT-systeem, waarbij je credits krijgt met referrals.
Als een lid een ref is, dan krijgt hij in een tabel het id van diegene die hem heeft aangebracht.
Ik dacht een pagina te maken waarbij je je referrals kon zien.
Met deze code echter zie ik maar 1 refferal.
Wat doe ik fout?
Ik heb een GPT-systeem, waarbij je credits krijgt met referrals.
Als een lid een ref is, dan krijgt hij in een tabel het id van diegene die hem heeft aangebracht.
Ik dacht een pagina te maken waarbij je je referrals kon zien.
Met deze code echter zie ik maar 1 refferal.
Wat doe ik fout?
[COLOR= #0000BB]<?
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM gebruikers WHERE ref="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$rij[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<p>- "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$rij[/COLOR][COLOR= #007700]->[/COLOR]naam[COLOR= #007700].[/COLOR][COLOR= #DD0000]"</p> "[/COLOR][COLOR= #007700];[/COLOR] ?> 