i want to create multiple nodes (from csv file) the csv is loaded well, and my table
node contains many old records (with
nid from 1 to 170) what i want is to record the csv's new nodes with nid strating from the last one on table
node (the new nodes would start from 171 on nid)
db_last_insert_id() with no success.
This is my
db_merge part :
$nodes = db_merge('node') ->key(array('nid' => last_insert_id())) ->fields(array( 'type' => 'livre', 'uid' => 1, 'status' => 1, 'comment' => 1, 'promote' => 0, 'title' => $new_array['titre_csv']<===from csv )) ->execute();