Welcome Guest, Not a member yet? Register   Sign In
How to call mysql stored functions
#2

[eluser]Unknown[/eluser]
I find answer:

$sql = "select summ(?, ?) as result";
$query = $this->db->query($sql, array( 4, 5));
$result = $query->row()->result;

I want to write some php file that will be contain all my database function.
I dont know how it better to do. Please give me advice...

May be create helper, or my be use models...


Messages In This Thread
How to call mysql stored functions - by El Forum - 10-03-2009, 06:36 AM
How to call mysql stored functions - by El Forum - 10-03-2009, 07:30 AM
How to call mysql stored functions - by El Forum - 10-03-2009, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB