What is wrong with this query?
I'm trying to custom write a user title color hack and I almost got it... However when the page loads online and I update the settings for some reason it's not making changes to the database row in the user table which is called titlecolor.
// ############################### Edit Title Color ###############################
if ($_REQUEST['do'] == 'edittitlecolor')
{
$templatename = 'titlecolor';
}
// ############################### Update Title Color ###############################
if ($_POST['do'] == 'updatetitlecolor')
{
globalize($_POST, array('titlecolor' => STR));
// Support tags HTML grog6
$titlecolor = strip_tags($titlecolor);
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
titlecolor = '" . addslashes($titlecolor) ."'
WHERE userid = $bbuserinfo[userid]
");
echo "titlecolor";
$url = "usercp.php?$session[sessionurl]";
eval(print_standard_redirect('redirect_updatethank s'));
}
|