Hello!

I don't understand why my code don't work in Requirement PHP code :

$tid = db_result( db_query( "select t.tid from term_data t inner join term_node tn on t.tid = tn.tid where tn.nid = %d limit 1", $nid));
<?php if ($tid ==3): 
 return true;
endif 
 return false;

Can you help me please?

Comments

djg_tram’s picture

Status: Active » Fixed

Not likely to be important after all these years, just to be able to close the thread: you have an extra <?php in the middle.

djg_tram’s picture

Status: Fixed » Closed (works as designed)