echo "$points";
will print the value of $points on a .php page.
if you want it to show in the member account section, that'd need some hacking I guess.
adding plus points>
1. first you query the row 'points' associated with MikeJones
2. +100 to $result
3. update row
Quote:
$points = mysql_query("SELECT points FROM ".$xoopsDB->prefix("userpoints")." WHERE username="MikeJones");
$result = mysql_fetch_array( $points );
$pointsnew = $result + 100 ;
mysql_query("UPDATE ".$xoopsDB->prefix("userpoints")." SET points='$pointsnew' WHERE username='MikeJones'");