Welcome Guest, Not a member yet? Register   Sign In
Joined rows in mdate() function?
#2

[eluser]xwero[/eluser]
Are you trying to use database field values in a CI helper function?
Code:
mdate('%d', gmt_to_local(now(), 'accounts.timezone', 'accounts.daylight'))
This won't work as you discovered.

What you could do is something like
Code:
$this->db->where(array('post_date'=>time(),'accounts.timezone'=>$timezone,'accounts.daylight'=>$daylight);
The timezone and daylight variables come from the information the user provided you.


Messages In This Thread
Joined rows in mdate() function? - by El Forum - 09-15-2008, 03:11 AM
Joined rows in mdate() function? - by El Forum - 09-15-2008, 03:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB