The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
i use this code in member.php but it can't work ~
is it something wrong?? PHP Code:
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
any idea??
|
|
#3
|
||||
|
||||
|
Code:
//top views user
$fileviews=$DB_site->query_first('SELECT [high]SUM[/high]([high]profileviews[/high]) AS profileviews FROM user');
$totalprofileviews=$fileviews['profileviews']
$ppfileviews=$DB_site->query_first("SELECT [high]SUM[/high]([high]profileviews[/high]) AS profileviews FROM user WHERE [high]userid[/high]='$userinfo[userid]'");
$userproviews=$ppfileviews['profileviews']
$totalpercentviews = round(($userproviews / $totalprofileviews) * 100,2);
//end top views user
|
|
#4
|
||||
|
||||
|
FireFly thank ur help!!
but it still cann't work!! it show up this message:Parse error i put that code above this code,is it right?? PHP Code:
|
|
#5
|
||||
|
||||
|
Ah yes, you are missing a ; after these two:
Code:
$totalprofileviews=$fileviews['profileviews'] |
|
#6
|
||||
|
||||
|
oh~~~~
![]() i see!! thankz ur help FireFly!! i think it will be work now~~~ |
![]() |
|
|