I have error in my SELECT query.
And the error was,Code:
$query = $this->db->query("SELECT classid, nameclass FROM classes WHERE pathwayid = $pathwayid ORDER BY nameclass ASC");
I know the error is very basic, Sorry but I forgot...Code:
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY nameclass ASC' at line 1
Thanks in advance.