PDA

View Full Version : how do i


topical
Fri 10th Dec '04, 4:20pm
hey i got a question

i am creating a vB3 battle system

im stuck on this problem i created a textfield with the name="winner"

and in my newreply.php i used the code


// update battles
$winid = $DB_site->query_first("SELECT username FROM ".TABLE_PREFIX."user WHERE userid='$winner'");

if ($winid['username'] > 0)
{
$DB_site->query("UPDATE ".TABLE_PREFIX."user SET wins=wins+1 WHERE username='$winid[username]'");
}


// end of battle update



but it does nuthing and i tried more codes but dont seem to work :( can any body help me??

Zachery
Fri 10th Dec '04, 5:27pm
You are best to ask for help with custom vB coding at vBulletin.org

topical
Fri 10th Dec '04, 9:26pm
ok thnx man