PDA

View Full Version : how to make this work?


squawell
01-08-2002, 07:23 AM
i made this code:


$squawell123 = mktime(0,0,0,date("m"), date("d"), date("y"));
$posttodays=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$squawell123' or userid='$bbuserinfo[userid]'");
$post[userpoststoday]=number_format($posttodays['count']);


i want to show up the post of today for each member's post

i use this code in showthread.php~~

but it always show the admin's number~~~

so what is the problem??

could someone tell me plz??

squawell
01-10-2002, 01:38 PM
any one ??

Admin
01-10-2002, 01:43 PM
Try using $post[userid] instead of $bbuserinfo...?

squawell
01-10-2002, 03:21 PM
FireFly u mean try use this one

$squawell123 = mktime(0,0,0,date("m"), date("d"), date("y"));
$posttodays=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$squawell123' or userid='$post[userid]'");
$post[userpoststoday]=number_format($posttodays['count']);

ok i will try it !!thankz~ :D :D

squawell
01-10-2002, 03:29 PM
help me firefly i still can't work

have any idea??