111

Search Results

get_results( “SELECT wp_terms.name,wp_terms.slug,wp_term_taxonomy.description,wp_term_taxonomy.taxonomy FROM wp_term_taxonomy,wp_terms WHERE (wp_term_taxonomy.taxonomy LIKE ‘wpsc_product_category’ OR wp_term_taxonomy.taxonomy LIKE ‘product_tag’) AND (wp_term_taxonomy.description LIKE ‘%$_GET[sq]%’ OR wp_terms.name LIKE ‘%$_GET[sq]%’) AND wp_term_taxonomy.term_id=wp_terms.term_id” );
if($resutls){
foreach ($resutls as $row){
if($row->taxonomy==’wpsc_product_category’){
echo ‘

‘;
break;
}else{
echo ‘

‘;
break;
}
}
}

?>