Jump to content
Salesforce and other SMB Solutions are coming soon. ×

getRecordById gives error


heldopslippers

Recommended Posts

hee all,

 

I have a problem with getRecordById()..

 

this is my code:

 

 

Code:

function get_rights($ID){ 
  $record = $GLOBALS['db']->getRecordById('Account', $ID); 
  $rights = $record->getRelatedSet('Rights'); 

  $i=0; 
  foreach($rights as $right){ 
               $i++; 
     $r[$i]= $right->getField('ID'); 
  } 
  $_SESSION['rights']=$r; 
} 

 

 

my error message is:

Fatal error: Call to undefined method FileMaker_Error::getRelatedSet()

 

why is it doeing this ? I made a portal in Filemaker which works perfect ...

and I can acces the database with php but nog with "getRecordById()" even when I use getField ...

 

I hope someone nows what I am doeing wrong here

Link to comment
Share on other sites

  • 11 months later...


×
×
  • Create New...

Important Information

Terms of Use