![]() |
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:
|
PHP Code:
|
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
|
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 |
Like this??
PHP Code:
|
Yes, that's correct. :)
BTW, the parenthesis in the query aren't necessary, although they don't hurt either. |
thanks for the input.
|
All times are GMT. The time now is 12:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|