squawell
12-24-2001, 01:31 AM
i use this code in member.php but it can't work ~
is it something wrong??
//top views user
$fileviews=$DB_site->query_first('SELECT count(*) AS profileviews FROM user');
$totalprofileviews=$fileviews['profileviews']
$ppfileviews=$DB_site->query_first("SELECT count(*) AS profileviews FROM user WHERE postuserid='$userinfo[userid]'");
$userproviews=$ppfileviews['profileviews']
$totalpercentviews = round(($userproviews / $totalprofileviews) * 100,2);
//end top views user
is it something wrong??
//top views user
$fileviews=$DB_site->query_first('SELECT count(*) AS profileviews FROM user');
$totalprofileviews=$fileviews['profileviews']
$ppfileviews=$DB_site->query_first("SELECT count(*) AS profileviews FROM user WHERE postuserid='$userinfo[userid]'");
$userproviews=$ppfileviews['profileviews']
$totalpercentviews = round(($userproviews / $totalprofileviews) * 100,2);
//end top views user