hey guys im trying to update my database using php ang ajax, but assuming that the textbox are dynamic thats why im trying to update the database using multiple updates with one
It appears you have no space between SET
and grade
.
Adding a space here should do the trick:
$update_grades_boys = "UPDATE registrar_grade_archive SET ";
If this doesn't do it, it would help tremendously if you could post the result of echo $ready_edit_grades_boy;
and update your question.
Some problems here:
$student_grades_boy
contains more than 1 item, your sql will have multiple WHERE
statements (you can only have 1);SET
and the column name;mysql_
functions are deprecated.try
$update_grades_boys = "UPDATE registrar_grade_archive SET ";
One space is needed after SET
..
You are not escaping vars, so it could be some ' or " in your values.
http://php.net/manual/en/mysqli.real-escape-string.php