Answers for "codeigniter query print"

SQL
2

codeigniter print last sql query

print_r($this->db->last_query());
Posted by: Guest on August-19-2020
1

codeigniter raw query

$sql="Select * from my_table where 1";    
    $query = $this->db->query($SQL);
    return $query->result_array();
Posted by: Guest on September-03-2020
0

how to print mysql query of codeigniter query builder

To display the query string:

print_r($this->db->last_query());    

To display the query result:

print_r($query);
Posted by: Guest on January-20-2021

Code answers related to "codeigniter query print"

Code answers related to "SQL"

Browse Popular Code Answers by Language