Skip to content

Instantly share code, notes, and snippets.

View pmaruszczyk's full-sized avatar

pmaruszczyk

View GitHub Profile
@volgoweb
volgoweb / db_insert multiple rows
Created September 25, 2013 09:33
Insert multiple rows into db, using drupal 7 pdo
$values = array(
array(
'title' => 'Example',
'uid' => 1,
'created' => REQUEST_TIME,
),
array(
'title' => 'Example 2',
'uid' => 1,
'created' => REQUEST_TIME,