You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$query = sprintf("SELECT * FROM attributes WHERE include_in_search=1 AND display_name LIKE '%%%s%%' OR descrip LIKE '%%%s%%' ORDER BY display_name",
mysql_real_escape_string($search_term),
mysql_real_escape_string($search_term));
} else {
$query = sprintf("SELECT * FROM attributes WHERE include_in_search=1 AND (display_name LIKE '%%%s%%' OR descrip LIKE '%%%s%%') AND class_id='%s' ORDER BY display_name",