db_insert example

Public

Get raw version
php
  1. $id = db_insert('mailinglist_node')
  2. ->fields(array(
  3. 'name' => $form_state[input][name],
  4. 'email' => $form_state[input][email],
  5. ))
  6. ->execute();