Welcome Guest, Not a member yet? Register   Sign In
Problem with MVC and passing the query data
#6

[eluser]osci[/eluser]
I believe where syntax is
WHERE column_name operator value

also you should check if query holds any data and then return ->result()
Code:
return ($query->num_rows() > 0) ? $query->result() : FALSE;

and in your view you would do
Code:
if (isset($wynik) & ($wynik <> NULL))
{
//do your loop here
}


Messages In This Thread
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 04:02 PM
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 04:06 PM
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 04:19 PM
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 04:47 PM
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 05:15 PM
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 05:41 PM
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 05:49 PM
Problem with MVC and passing the query data - by El Forum - 06-24-2011, 05:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB