Hmmmm, i put the same code (eited the php parts) in the mysql box, and it worked /; but it wont work in my php script, ill ive you all i got so far
PHP Code:
<?php
//vBulletin crap
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'rpg');
$phrasegroups = array(
);
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT #################################
// ######################################################################
//Permission
if (is_member_of($vbulletin->userinfo, 1))
{
print_no_permission();
}
//Post?
if ($_POST)
{
}
else
{
$navbits = array();
$navbits[$parent] = 'RPG Stats';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('RPG') . '");');
}
//test query!
$rpg = $db->query_write("UPDATE ". TABLE_PREFIX ."user
SET rpg_name='life', rpg_sex='life', rpg_skin='life', rpg_eyes='life',
rpg_hair='life', rpg_age='life', rpg_height='life', rpg_build='life'
WHERE userid='" . $vbulletin->userinfo['userid'] . "'
");
?>
as to teh correct userid thingie, it works, as i was playing earlyer, and got a mysql error, and saw that it did have the correct userid!