Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]How to make a conditional insert in multiple tables?
#10

[eluser]earlyriser[/eluser]
[quote author="Sumon" date="1223003201"]what about
Code:
echo $query->num_rows();
[/quote]

I did it. I got a blank page Sad

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.


Messages In This Thread
[SOLVED]How to make a conditional insert in multiple tables? - by El Forum - 10-02-2008, 08:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB