07-24-2000, 08:23 PM
Hi,
I called from an external page (still on the same domain / same site) some vbulletin features such as member numbers, last member registered....
And on I got an error message on the very top of the brower page. It strange, because I don't have myself this error, it seems only non registered member got this message.
Here is the code I included:
1) To call the script features (just below the html body tag):
<? require("/domain/www/community/global.php");
$numbersmembers=$DB_site->query_first("SELECT COUNT(userid) AS users FROM user");
$numbermembers=$numbersmembers[users];
$getnewestusers=$DB_site->query_first("SELECT username,userid FROM user ORDER BY userid DESC LIMIT 1");
$newusername=$getnewestusers[username];
$newuserid=$getnewestusers[userid];
$countposts=$DB_site->query_first("SELECT COUNT(postid) AS posts FROM post");
$totalposts=$countposts[posts]; ?>
And to display all these features, somewhere else in the page:
<?PHP echo "$numbermembers"; ?> members are registered, and <?PHP echo "$totalposts"; ?> messages were posted in total. Welcome to our newest member: <?PHP echo "$newusername"; ?>.?
And here is the error message:
Warning: Oops, php3_SetCookie called after header has been sent in /xpk_hq/www/community/global.php on line 712
It works pefectly, it just display this ugly message on top.
Why is a cookie involved here ? Could this be the problem ?
Please help me,
Thanks,
Benj
I called from an external page (still on the same domain / same site) some vbulletin features such as member numbers, last member registered....
And on I got an error message on the very top of the brower page. It strange, because I don't have myself this error, it seems only non registered member got this message.
Here is the code I included:
1) To call the script features (just below the html body tag):
<? require("/domain/www/community/global.php");
$numbersmembers=$DB_site->query_first("SELECT COUNT(userid) AS users FROM user");
$numbermembers=$numbersmembers[users];
$getnewestusers=$DB_site->query_first("SELECT username,userid FROM user ORDER BY userid DESC LIMIT 1");
$newusername=$getnewestusers[username];
$newuserid=$getnewestusers[userid];
$countposts=$DB_site->query_first("SELECT COUNT(postid) AS posts FROM post");
$totalposts=$countposts[posts]; ?>
And to display all these features, somewhere else in the page:
<?PHP echo "$numbermembers"; ?> members are registered, and <?PHP echo "$totalposts"; ?> messages were posted in total. Welcome to our newest member: <?PHP echo "$newusername"; ?>.?
And here is the error message:
Warning: Oops, php3_SetCookie called after header has been sent in /xpk_hq/www/community/global.php on line 712
It works pefectly, it just display this ugly message on top.
Why is a cookie involved here ? Could this be the problem ?
Please help me,
Thanks,
Benj