The Arcive of vBulletin Modifications Site. |
|
MySQL via VB interface code Details »»
|
|||||||||||||||||||||||||
Using $DB_site How would I go about testing a table for a specific unique identifier and have the system return a true or false?
What I have so far (and it doesn't work): (assuming dbase.test[id] is always a unique identifier within the table) PHP Code:
Any ideas how I could better test for this scenario? My brain is mushy from coding so long. Thanks in advance! Cloudrunner Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
What's the error?
Also, never use ! except for boolean values or values of only 1 or 0. On a related note, check out the === versus the == operator to see why I'm saying that. |
|
#3
|
||||
|
||||
|
Got it!
Thanks Filburt. I appreciate it. Although the "===" is not the way that I went. I did the following: PHP Code:
Anyways, Thanks for the kick start. It works now so far. Ciao! Cloud |
![]() |
|
|