how to insert a node in drupal using database query?
i want to insert the node manually to drupal database using mysql query. i am using CCK module with path redirect,pathauto & view.
Whic开发者_运维知识库h tables & which field i will have to feed data so that it will work like a node.Best thing I can think of is to insert a node through the Drupal system and see which tables get updated and what with.
It's best to follow the Drupal API way of doing this.
You can take a look at this page http://www.unleashed-technologies.com/blog/2010/07/16/drupal-6-inserting-updating-nodes-programmatically which will help you insert a node with PHP.
精彩评论