Welcome Guest, Not a member yet? Register   Sign In
Using functions in selects with DataMapper OZ
#3

[eluser]WanWizard[/eluser]
See the manual on how to deal with functions in Datamapper:
Code:
$n->select("id,headline,dk")->select_func("DATE_FORMAT", array('@date', '[,]', "'%e %M %Y'"), 'date')->order_by('date', 'desc')->get();
For security reasons, you don't want to disable escaping if other options are available.


Messages In This Thread
Using functions in selects with DataMapper OZ - by El Forum - 11-29-2010, 10:22 AM
Using functions in selects with DataMapper OZ - by El Forum - 11-29-2010, 10:39 AM
Using functions in selects with DataMapper OZ - by El Forum - 11-29-2010, 10:49 AM
Using functions in selects with DataMapper OZ - by El Forum - 11-29-2010, 11:00 AM
Using functions in selects with DataMapper OZ - by El Forum - 11-29-2010, 12:23 PM
Using functions in selects with DataMapper OZ - by El Forum - 11-29-2010, 03:33 PM
Using functions in selects with DataMapper OZ - by El Forum - 11-29-2010, 04:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB