Skip to content

Instantly share code, notes, and snippets.

@leben-jp
Last active March 6, 2018 10:35
Show Gist options
  • Save leben-jp/e52fc10d887aacb1ac238d78ca9072b0 to your computer and use it in GitHub Desktop.
Save leben-jp/e52fc10d887aacb1ac238d78ca9072b0 to your computer and use it in GitHub Desktop.
コードイグナイターで最後のqueryを表示する方法
<?php
$this->db->select('*');
$this->db->from('users');
$query = $this->db->get();
echo $this->db->last_query();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment