Codeigniter - Debug Last query


/ Published in: PHP
Save to your folder(s)

# Debug Last query #
Show a position absolute div with last query made by codeigniter.


Copy this code and paste it in your HTML
  1. echo "<div style='background:white;color:black;position:absolute;margin:10px;padding:10px;bottom:10px;right:10px'>" . $this->db->last_query() . "</div>";

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.