PDA

View Full Version : why this code cann't work


squawell
11-25-2001, 01:10 PM
hey guys

i make this code

//count attach file by member upload
$attach=$DB_site->query_first("SELECT count(*) AS attachmenet FROM thread WHERE postuserid='$bbuserinfo[userid]'");
$memberattach =number_format($attach['attachmenet']);

and it work in forumhome but i want it work in postbit so i make

this code


//count attach file by member upload
$attach=$DB_site->query_first("SELECT count(*) AS attachmenet FROM thread WHERE postuserid='$post[userid]'");
$post[attach]=number_format($attach['attachmenet']);
//end count attach file by member upload

but it cann't work ~~someone tell me how to fix it??

squawell
11-26-2001, 04:59 AM
somebody help me plz~~~ :cry: