Reputation: 18006
Hi I am mad on not understanding the error in this where clause of zend query. My query is
$select->where("id=".$get['value']." OR description like '%".$get['value']."%'");
$get['value']
is the query that I want to search. But result is 500 internal server error
and it always says the value of get['value']
is unkown column. For example if I have searched testing
for description
column it always says that testing
in unknown columns... why is this happening
Upvotes: 0
Views: 292
Reputation: 444
Check this docs zend_db_select you may wrong in your syntax.
$table->select()
->where('id = ?', $get['value'])
->orWhere('description like ?', '%' . $get['value'] . '%');
Edited!
Upvotes: 3