[eluser]earlyriser[/eluser]
[quote author="Sumon" date="1223003201"]what about
Code:
echo $query->num_rows();
[/quote]
I did it. I got a blank page
My current code is
Code:
function comment_insert()
{
//check if the wine is in database
$thename=$_POST['name'];
$this->db->select('*');
$this->db->from('wines');
$this->db->where('name', $thename);
$data['query']= $this->db->get();
echo $query->num_rows();
}
and still is a blank page, I'm not sure if the query is correct.
Thanks for your comments.