for(int i=0;i<resultset.length;i++)
{
a = select meta_value from wp_postmeta where meta_key ='movie name' and post_id = resultset(i)
}
resultset = (select object_id from wp_term_relationships where term_taxonomy_id = (select term_taxonomy_id from wp_term_taxonomy where taxonomy = 'actors' and term_id = (Select term_id from wp_terms where name = 'Aamir khan'))
for(int i=0;i<resultset.length;i++)
{
b = select meta_value from wp_postmeta where meta_key ='movie name' and post_id = resultset(i)
}
resultset = (select object_id from wp_term_relationships where term_taxonomy_id = (select term_taxonomy_id from wp_term_taxonomy where taxonomy = 'actors' and term_id = (Select term_id from wp_terms where name = 'Salman khan'))
&amp;的价值b是这些演员完成的电影的名称,我只是想比较这两个,如果有任何共同的电影,那么它将显示。 如果我不在写作路径上,那么请告诉我正确的道路。 这必须在wordpress上完成