Welcome Guest, Not a member yet? Register   Sign In
Problem by select from db when there is a space followed by a comma in where clause
#2

[eluser]johnpeace[/eluser]
It doesn't look like you're using

Code:
$this->db->select()

correctly.

It looks like you're trying to pass an entire query to that method, when it only expects the fields you're trying to get data from in your query.

Your query could be probably be rewritten as an active record statement. If it can't, and you need to write a whole query to run you should try this:

Code:
$this->db->query('YOUR QUERY HERE');


Messages In This Thread
Problem by select from db when there is a space followed by a comma in where clause - by El Forum - 02-16-2012, 09:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB