The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help comparing a table value to a variable
I am trying to get a value from the VB database and compare it to a string submitted in a form.
The custom form takes an input from a form ($name). I want to compare $name, which will be an alphanumerical string, to userfield.field3 which is also an alphanum. I have tried the following code but I get Resource id #18 instead of the actual value stored in the DB. Code:
$name2 = $db->query_read("SELECT field3 FROM " . TABLE_PREFIX . "userfield WHERE userid = " . $vbulletin->userinfo['userid'] ); if $name !== $name2 { do something; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|