'' AND (LOWER(n.title) LIKE '%s%%' OR LOWER(p.model) LIKE '%s%%')"), strtolower($string), strtolower($string), 0, 10); while ($node = db_fetch_object($result)) { $matches[$node->nid] = t('@title [@sku]', array('@title' => $node->title, '@sku' => $node->model)); } } drupal_json($matches); }