Quote:
05-02-03 at 09:08 PM gengar003 said this in Post #1
PHP Code:
require('./global.php');
$userstuff = $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
$points=$userstuff[storep];
if ($points < 1000 && $forumid == 51){
echo $points;
}
|
Why do so many people select from the user table for something already in the $bbuserinfo array?
PHP Code:
$points=$bbuserinfo[storep];
if ($points < 1000 && $forumid == 51){
echo $points;
}
Put that under this:
PHP Code:
$templatesused = 'showthread_ratingdisplay,postbit_search,postbit_buddy,postbit_ignore,postbit_useremail,icq,aim,yahoo,postbit_homepage,postbit_profile,postbit_ip_show,postbit_ip_hidden,postbit,postbit_sendpm,postbit_avatar,postbit_offline,postbit_online,postbit_editedby,postbit_signature,postbit_attachment,postbit_attachmentimage,showthread_adminoptions,showthread_threadrate,showthread_pollresults_voted,showthread_pollresults_closed,showthread_pollresults_cantvote,showthread_firstunread,showthread_nextnewestthread,showthread_nextoldestthread,forumrules,showthread';
require('./global.php');