Ik heb dit via een tutorial voor mekaar gekregen.
Maar nu echot hij de punten aantallen van iedereen...
Hoe doe ik dat hij het alleen van de gebruiker van de huidige sessie doet?
Maar nu echot hij de punten aantallen van iedereen...
Hoe doe ik dat hij het alleen van de gebruiker van de huidige sessie doet?
[COLOR= #0000BB]<?php
$res[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT uCoins FROM member_accounts"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$obj[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$res[/COLOR][COLOR= #007700])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$obj[/COLOR][COLOR= #007700]->[/COLOR]uCoins[COLOR= #007700].[/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/mysql_free_result"]mysql_free_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$res[/COLOR][COLOR= #007700]);[/COLOR]
?> 
