MY query is:-
$sql = "SELECT * FROM `backup_history` WHERE DATE_FORMAT(datetime, '%Y-%m-%d' ) = '$current_date' AND `site_id`='$data[site_id]' ";
How can I convert this query to run in Yii?
does anyone solve it problem.
thanks!
$sql = "SELECT * FROM `backup_history` WHERE DATE_FORMAT(datetime, '%Y-%m-%d' ) = '$current_date' AND `site_id`='$data[site_id]' ";
How can I convert this query to run in Yii?
does anyone solve it problem.
thanks!