User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
---+---------+------+----------+--------------+id| exam_id| name | syllabus | last_updated |---+---------+------+----------+--------------+
So, I got some error. Like this:
Error: SQLSTATE[42000]: Syntax error or access violation: 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 'syllabuses Array LEFT JOIN oes.syllabuses AS Syllabuses ON (Syllabuses.`' at line 1
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
Each exam has one syllabus, each syllabus has one exam. So, I did this in the Exam model:
From
UsersControllerI did this:And in a method in
UsersControllerI wanted to call paginate:exams table:
and syllabuses table:
So, I got some error. Like this:
And my SQL that CakePHP prepared is:
But what I want is something like the query bellow. I have tested it in mysql: