Welcome Guest, Not a member yet? Register   Sign In
Problem with MySql functions on Active Record
#6

[eluser]kmil0[/eluser]
Thanks phyromaniac Big Grin
the final query is:

Code:
$query = $this->db->select(
                           array(
                              'u.name_u  as name',
                              'DATE_FORMAT(u.date_field, "%Y%m%d %H:%i%s") as date_field'
                           ), FALSE
                          );
                            
$query = $this->db->join("rol r", "r.code_r = u.cod_rol");
$query = $this->db->get("users u", $offset, $lenght);

Now it works! Big Grin
but... where can I see the arguments for the db functions?
I don't see it in the user guide, however Wink

Thanks to all again Wink


Messages In This Thread
Problem with MySql functions on Active Record - by El Forum - 09-30-2008, 09:30 PM
Problem with MySql functions on Active Record - by El Forum - 09-30-2008, 09:52 PM
Problem with MySql functions on Active Record - by El Forum - 09-30-2008, 10:07 PM
Problem with MySql functions on Active Record - by El Forum - 09-30-2008, 10:48 PM
Problem with MySql functions on Active Record - by El Forum - 10-01-2008, 03:46 AM
Problem with MySql functions on Active Record - by El Forum - 10-01-2008, 09:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB