How to get sql result from raw query – Phpmyadmin
Error in getting for SQL results in codeIgniter. When I use same query in phpmyadmin I got my results successfully. What's wrong, please help. MODEL: public function calculateScore() { $team_points = $this->db->query('SELECT teams.team_name, COUNT(matches.winner) AS Win FROM matches RIGHT JOIN…