Welcome Guest, Not a member yet? Register   Sign In
Worked in 1.5 but gives error in 1.7.1
#1

[eluser]citryer[/eluser]
Following used to work in 1.5.x

Code:
//my_model.php
$this->db->select("id, DATE_FORMAT(postdt,'%D %M %Y') as newsdt, title");
$this->db->where('id',$id); // Confirmed value received
$query = $this->db->get('my_news_table');
return $query->row();

Since the upgrade to 1.7.x This now produces following error:
Code:
Fatal error: Call to a member function row() on a non-object in G:\wamp\XXX\YYY\models\my_model.php on line 48

Query by the way works when I remove the Date_Format portion from the select clause.


Messages In This Thread
Worked in 1.5 but gives error in 1.7.1 - by El Forum - 04-20-2009, 03:45 AM
Worked in 1.5 but gives error in 1.7.1 - by El Forum - 04-20-2009, 03:51 AM
Worked in 1.5 but gives error in 1.7.1 - by El Forum - 04-20-2009, 03:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB