There is two php statement:
1) $this->db->query($sql);
2) $this->db->query($sql2);
how to make sure that 2nd statement executes if only the first one executes?
I have tried like following but it doesn't work.
$query = $this->db->query($sql);
if($query != NULL) {
$this->db->query($sql2);
}