Welcome Guest, Not a member yet? Register   Sign In
using database library calls within a helper
#3

[eluser]AF[/eluser]
Could you give me a little more detail? Here is the code:

function datediff($sdate, $anchor) {
$query="SELECT DATEDIFF('$sdate','$anchor')";
$query =$this->db->query($query);
$row=$query->result_array();


return($row);
}

So, maybe this is a basic question, but what is the & in your case?

And, thank you too.


Messages In This Thread
using database library calls within a helper - by El Forum - 08-30-2009, 07:19 PM
using database library calls within a helper - by El Forum - 08-30-2009, 09:34 PM
using database library calls within a helper - by El Forum - 08-30-2009, 10:17 PM
using database library calls within a helper - by El Forum - 08-30-2009, 10:45 PM
using database library calls within a helper - by El Forum - 08-31-2009, 02:18 AM
using database library calls within a helper - by El Forum - 08-31-2009, 07:23 AM
using database library calls within a helper - by El Forum - 08-31-2009, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB