Failed to Add Exam..
After filling out the add exam form and pressing the submit add exam button, the new exam data can be added to the database. I created the add exam file and successfully inserted the data into the database. However, the content of the data is 0 or empty and only displays the id.
manage_exam.php:322 Failed to add exam: SyntaxError: Unexpected token '<', "<br />
<b>"... is not valid JSON
at parse (<anonymous>)
at a.parseJSON (jquery-migrate-1.4.1.min.js:2:3813)
at jquery-3.6.0.min.js:2:79470
at l (jquery-3.6.0.min.js:2:79587)
at XMLHttpRequest.<anonymous> (jquery-3.6.0.min.js:2:82355)
New contributor
Thats U is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.