The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Whats wrong with this bit of sql php code.
$DB_site->query("UPDATE user SET myfavt='$tht' WHERE userid=$bbuserinfo[userid]");
? It doesn't seem to insert the value of $tht to the myfavt column in the user table. I don't get whats wrong Thanks in Advance -Arunan |
#2
|
||||
|
||||
are you sure $tht is set up right?
also if it's a value a user can enter you should use this: $DB_site->query("UPDATE user SET myfavt='".addslashes($tht)."' WHERE userid=$bbuserinfo[userid]"); |
#3
|
||||
|
||||
Yea, its being passed, I even set up a form for it...I will try the addslashes one.
Thanks -Arunan |
#4
|
||||
|
||||
Thanks Xenon, worked like a charm
-Arunan |
#5
|
||||
|
||||
you're welcome |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|