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
Your Answer