Hello in the following MySQL query I am attempting to insert a string where it says "notes" but I keep getting an error and the data does not submit. However, if I pass a number it successfully works.
`insert into lecture_notes(teacher_id, class_id, notes, sent_on)
values(?,?,?, now());`,
[
data1, data2, "testing testing"
],
//Following is the error I keep getting { "success": 0, "data": "Error. Unable to post notes.", "error_type": { "code": "ER_BAD_FIELD_ERROR", "errno": 1054, "sqlMessage": "Unknown column 'notes' in 'field list'", "sqlState": "42S22", "index": 0, "sql": "insert into lecture_notes(teacher_id, class_id, notes, sent_on)\n values(28,27,note, now());" } }
notes?desc lecture_notes;so that the data types can be seen properly.