Avoiding Error – Message when searching via URL

QuestionsAvoiding Error – Message when searching via URL
selectcase asked 8 years ago

Searcing via URL-Parameter works fine if a column for instance "columnname" is there. I use just: ?list1_columname=searchterm

However, when going to a page where this columnname not exists I get:
Couldn't execute query. Unknown column 'columnname' in 'where clause'. Of course I could implement this columnname as an empty column and in the sql-statment. However is there a more elegant way? Like "suppress error message, if columnname not exists".

2 Answers
Abu Ghufran answered 8 years ago

Correct, will be updating you with an update

Abu Ghufran answered 8 years ago

Email sent.

Your Answer

2 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?