Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alvar0hurtad0/f29de622962d00109444ed36803e7c97 to your computer and use it in GitHub Desktop.
Save alvar0hurtad0/f29de622962d00109444ed36803e7c97 to your computer and use it in GitHub Desktop.
$fields = array(
'item_id',
'revision_id',
// Dodos los campos.
);
$values = array(
'1',
'1',
// Todos los campos.
);
$query = db_insert('tabla')
->fields($fields, $values)
->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment