![]() |
i use this code in member.php
$ppoopp=$DB_site->query_first("SELECT count(*) AS counter FROM attachment WHERE userid='$bbuserinfo[userid]'"); $xx=$ppoopp['counter']; i want to count all attach file download times for each member for example: a user download 55times than in profile show up 55 times he download but above the code it always show up the same number i think it maybe some where wrong hope some one tell me what's wrong with that code?? thankz~~:D |
try this
$ppoopp=$DB_site->query_first("SELECT count(*) AS count FROM attachment WHERE userid='$bbuserinfo[userid]'"); $xx=$ppoopp['counter']; |
Quote:
Code:
$ppoopp=$DB_site->query_first("SELECT sum(counter) AS counter FROM attachment WHERE userid='$bbuserinfo[userid]'"); |
thankz both of u --FWC and nuno~~~
but it still cann't work~~ the problem still here~~~ |
have any idea with this?? :confused: :confused: :confused:
|
All times are GMT. The time now is 03:34 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|