Hi all,
I have a new table linked to links table and want links to search that table. So I pass a hash ref of $args to the query_sth method. the $args basically contains parameters similiar to the $args for links table search, but without fields specific to links table. Strangly the search returns all record in my table. I checked the debug message, the actual sql command is "SELECT * From mytable" with the "WHERE" clause missing! If I extract the search terms from the $args hash and pass them to query_sth like this: query_sth('MyField_name'=>$terms), I can get what I expected.
What's wrong in this case? How can I specify column(s) to be searched in the $args hash?
Thank you in advance for your help.
Long
I have a new table linked to links table and want links to search that table. So I pass a hash ref of $args to the query_sth method. the $args basically contains parameters similiar to the $args for links table search, but without fields specific to links table. Strangly the search returns all record in my table. I checked the debug message, the actual sql command is "SELECT * From mytable" with the "WHERE" clause missing! If I extract the search terms from the $args hash and pass them to query_sth like this: query_sth('MyField_name'=>$terms), I can get what I expected.
What's wrong in this case? How can I specify column(s) to be searched in the $args hash?
Thank you in advance for your help.
Long