bad query

This commit is contained in:
skeeter 2000-10-29 02:51:54 +00:00
parent 76feeee65d
commit f265c39252

View File

@ -52,8 +52,9 @@
. "%$query%' OR a.ab_firstname like '%$query%' OR a.ab_email like '%$query%' OR " . "%$query%' OR a.ab_firstname like '%$query%' OR a.ab_email like '%$query%' OR "
. "a.ab_street like '%$query%' OR a.ab_city like '%$query%' OR a.ab_state " . "a.ab_street like '%$query%' OR a.ab_city like '%$query%' OR a.ab_state "
. "like '%$query%' OR a.ab_zip like '%$query%' OR a.ab_notes like " . "like '%$query%' OR a.ab_zip like '%$query%' OR a.ab_notes like "
. "'%$query%' OR c.company_name like '%$query%')" . "'%$query%' OR c.company_name like '%$query%')");
. " $ordermethod limit $limit"); // . "'%$query%' OR c.company_name like '%$query%')"
// . " $ordermethod limit $limit");
} else { } else {
$phpgw->db->query("SELECT count(*) " $phpgw->db->query("SELECT count(*) "
. "from addressbook " . "from addressbook "
@ -61,8 +62,9 @@
. "%$query%' OR ab_firstname like '%$query%' OR ab_email like '%$query%' OR " . "%$query%' OR ab_firstname like '%$query%' OR ab_email like '%$query%' OR "
. "ab_street like '%$query%' OR ab_city like '%$query%' OR ab_state " . "ab_street like '%$query%' OR ab_city like '%$query%' OR ab_state "
. "like '%$query%' OR ab_zip like '%$query%' OR ab_notes like " . "like '%$query%' OR ab_zip like '%$query%' OR ab_notes like "
. "'%$query%' OR ab_company like '%$query%')" . "'%$query%' OR ab_company like '%$query%')");
. " $ordermethod limit $limit"); // . "'%$query%' OR ab_company like '%$query%')"
// . " $ordermethod limit $limit");
} }
$phpgw->db->next_record(); $phpgw->db->next_record();