[support] d7, passing functions in db_insert()

Don donald at fane.com
Mon Dec 22 20:36:08 UTC 2014


I know i've done this before, but I can't remember now.

Given
   $id = db_insert('stats_table')
    ->fields(array(
      'created' => 'now()',
   ))
   ->execute();

More interested in how to pass functions than in getting it to work.

-- 
thanks
-- 
-Don Pickerel-
Fane Software

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20141222/42ed353c/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fane-th.png
Type: image/png
Size: 18361 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/support/attachments/20141222/42ed353c/attachment.png 


More information about the support mailing list