Php code

netizi - October 8, 2008 - 08:54
Project:Virtual Sites
Version:6.x-1.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello!

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

<?php

$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?

 
 

Drupal is a registered trademark of Dries Buytaert.