codeigniter echo last query
public function test_db(){ $query = $this->db->get("items"); $str = $this->db->last_query(); echo "<pre>"; print_r($str); exit;}$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....
Also in PHP:
- count length of string pphp
- create laravel project version 5.8
- php check if string contains
- Add the file php
- error reporting php
- "Allowed memory size of 1073741824 bytes exhausted (tried to allocate 401952768 bytes)"
- DATE fromat H:i j M Y
- encryption key has not encrypted laravel
- branch from other branch
- check type of variable in php
- creat laravel project
- encode and decode data in php
- cahgne date format in php
- filteredduplicata php
- check if string contains substring php
- crete new project in laravel
- cache clear in laravel
- can i throw exception in catch block php
- can i back up mysql database from php code?
- How to display MySQL data dynamically using jQuery and PHP
- check char inside string php
- buscar texto dentro de php
- acf get user form field
- Call Python From PHP And Get Return Code