You can try this:
$data = Yii::app()->db->createCommand('Your query here')->queryAll();
var_dump($data);
More Related Contents:
- Count array by parse value of array
- “Invalid parameter number: parameter was not defined” Inserting data
- CURL ERROR: Recv failure: Connection reset by peer – PHP Curl
- Jquery – Uncaught TypeError: Cannot use ‘in’ operator to search for ‘324’ in
- SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
- Get first character of UTF-8 string
- Yii2 require all Controller and Action to login
- show recaptcha after 5 attemp in php
- How can I parse data from server using Json?
- WordPress doesnt show full page
- PHP: How to get the page name of an url
- Warning: preg_replace(): Unknown modifier
- Turning query errors to Exceptions in MySQLi [duplicate]
- Why can’t I run two mysqli queries? The second one fails [duplicate]
- Combine two arrays
- How create an array from the output of an array printed with print_r?
- PHP array combinations
- How to SFTP with PHP?
- What is the best collation to use for MySQL with PHP? [closed]
- 500 internal server error, how to debug [duplicate]
- PHP case-insensitive in_array function
- PHP keep checkbox checked after submitting form
- Exotic names for methods, constants, variables and fields – Bug or Feature?
- How do I convert Word smart quotes and em dashes in a string?
- How do i count same values in an array and store it to a variable?
- How to send mail using PHP?
- Is mysqli_real_escape_string safe?
- Make text wrap in a cell with FPDF?
- Call to undefined method mysqli_result::fetch()
- How to remove extension from file name (only real extension!) [duplicate]