function DisplayPoints()
{
mysql_select_db('$database');
$qry = "Select points from $this->tablename where username='$username' and password='$pwd' and confirmcode='y'";
$rows = mysql_fetch_array($qry);
$points = $rows['points'];
echo " $points";
}
My idea was to make kind of points system in website. When user logins into page then in main page header you can see how much points you have.