Joe Pimms
03-09-2005, 05:08 AM
hello im haveing a problem with is code :
$usernumUploads = $DB_site->query_first("select count(*) as `uploaded` from ".TABLE_PREFIX."attachment where userid={$bbuserinfo['userid']}");
here is the template mod:
look for under postbit / postbit_legacy:
<div>
$vbphrase[posts]: $post[posts]
</div>
add under:
<div>
MY Files Uploaded: $usernumUploads
</div>
what im wanting to do is display under postbit template the total number of attachments a user has uploaded to my site. now when when i run this i get it saying "Array" why is that ?
im wanting a real count not like the other user stats hacks on here please help
please see error of pic
thanks
$usernumUploads = $DB_site->query_first("select count(*) as `uploaded` from ".TABLE_PREFIX."attachment where userid={$bbuserinfo['userid']}");
here is the template mod:
look for under postbit / postbit_legacy:
<div>
$vbphrase[posts]: $post[posts]
</div>
add under:
<div>
MY Files Uploaded: $usernumUploads
</div>
what im wanting to do is display under postbit template the total number of attachments a user has uploaded to my site. now when when i run this i get it saying "Array" why is that ?
im wanting a real count not like the other user stats hacks on here please help
please see error of pic
thanks