2
How do I return an integer value for the rows returned in select?
$query = $this->db->where("categoria_titulo", $categoria);
$query = $this->db->get("categorias");
$query = $query->num_rows();
echo $query;
2
How do I return an integer value for the rows returned in select?
$query = $this->db->where("categoria_titulo", $categoria);
$query = $this->db->get("categorias");
$query = $query->num_rows();
echo $query;
1
Set a variable for the record number search:
$query = $this->db->where("categoria_titulo", $categoria);
$query = $this->db->get("categorias");
$query_num = $query->num_rows();
echo $query_num;
Or else do
$query = $this->db->where("categoria_titulo", $categoria);
$query = $this->db->get("categorias");
return $query->num_rows();
Browser other questions tagged php codeigniter
You are not signed in. Login or sign up in order to post.
I posted an answer, try it that way, anything let me know... I use a lot of codeigniter. If you want to add me in Skype to change some stickers, write down: srandrebaill - Att
– Sr. André Baill