Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

codeigniter get last query

$this->db->last_query();

Returns the last query that was run (the query string, not the result). Example:
$str = $this->db->last_query();

// Produces: SELECT * FROM sometable.... 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #codeigniter #query
ADD COMMENT
Topic
Name
5+5 =