PHP mysql - ...AND column='anything'... ?
Posted
by Nike
on Stack Overflow
See other posts from Stack Overflow
or by Nike
Published on 2010-05-24T12:51:24Z
Indexed on
2010/05/24
13:01 UTC
Read the original article
Hit count: 192
Is there any way to check if a column is "anything"? The reason is that i have a searchfunction that get's an ID from the URL, and then it passes it through the sql algorithm and shows the result. But if that URL "function" (?) isn't filled in, it just searches for:
...AND column=''...
and that doesn't return any results at all. I've tried using a "%", but that doesn't do anything.
Any ideas?
© Stack Overflow or respective owner