Hi all,

I'm fairly new to drupal and am trying to learn how to do thing "properly" instead of just brought forcing them.

So I have created two content type with CCK (call them A and B), when a user creates an A I want to run some php and either also create a B or update the corresponding B (A to B is a many to one relation). Should I just insert/update B into the db myself? Or is there a CCK create content function some where that I can't find that I should be calling?

Thanks,
Tristan