Welcome Guest, Not a member yet? Register   Sign In
(Easy) Message if tag not found
#4

[eluser]Jesse2303[/eluser]
[quote author="Sumon" date="1216051709"]Your model code is....
Code:
function tag_count() {

$this->db->where('tag', $this->uri->segment(3) );
$results = $this->db->query('SELECT * FROM blogs ');
Return  $results;

}

is it be like this

Code:
function tag_count() {

$this->db->from('blogs');
$Condition=array('tag'=>$this->uri->segment(3));
$this->db->where($Condition);
return $this->db->get();

}
Hope it will help you.[/quote]

Wierd, al my other code with that model worksSmile

But it worked thanks anyway Wink


Messages In This Thread
(Easy) Message if tag not found - by El Forum - 07-12-2008, 09:00 AM
(Easy) Message if tag not found - by El Forum - 07-14-2008, 04:07 AM
(Easy) Message if tag not found - by El Forum - 07-14-2008, 05:08 AM
(Easy) Message if tag not found - by El Forum - 07-14-2008, 06:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB