The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
no match found query
OK, this works for me but if no match is found in the four fields I get an error. I would like $formpmid to equal "1" if no match is found. any help would be great. I'm ob a sql noob. -Ted
Any other comments on the code would be great also. PHP Code:
|
#2
|
|||
|
|||
PHP Code:
|
#3
|
|||
|
|||
Thanks! works perfect. I geuass when no match was found in the db the code didn't know how to handle it. much tanx. -Ted
|
#4
|
|||
|
|||
You should be aware that you have a dangerous SQL injection problem. You need to wrap all of the variables in the query with addslashes().
http://www.php.net/addslashes |
#5
|
|||
|
|||
Like this??
PHP Code:
|
#6
|
|||
|
|||
Yes, that's correct.
BTW, the parenthesis in the query aren't necessary, although they don't hurt either. |
#7
|
|||
|
|||
thanks for the input.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|