$sql="Select * from my_table where 1";
$query = $this->db->query($sql);
return $query->result_array();
More Related Contents:
- Combine multiple sql / mysql queries in one query
- CakePHP find method with JOIN
- CodeIgniter MSSQL connection
- How to print SQL statement in codeigniter model
- MySQL Join Multiple Rows as Columns
- How print in Jquery / Datatables [closed]
- Im trying to create some temporary tables in mysql using php
- How can I prevent SQL injection in PHP?
- SQL injection that gets around mysql_real_escape_string()
- How to include a PHP variable inside a MySQL statement
- Sending email with gmail smtp with codeigniter email library
- Use global variables in a class
- Examples of SQL Injections through addslashes()?
- Achieve hierarchy, Parent/Child Relationship in an effective and easy way
- How to set proper codeigniter base url?
- CodeIgniter: “The filetype you are attempting to upload is not allowed.”
- Redirect with CodeIgniter
- Codeigniter Routes regex – using dashes in controller/method names
- What are the differences between backtick and single quote? Can I use IF statement in a query as above?
- MYSQL Select from tables based on multiple rows
- How to populate HTML dropdown list with values from database
- Trying to get property of non-object – CodeIgniter
- Enabling $_GET in codeigniter
- Remove index.php in codeigniter 2.1.0
- How do you do multiple SQL statements in one mysql_query?
- MySQL/SQL retrieve first 40 characters of a text field?
- To Use a PHP Framework or Not? [closed]
- File upload required validation in CodeIgniter
- Fatal error: Call to a member function query() on null
- is_unique for codeigniter form validation