multiple update using ajax with php

前端 未结 4 1591
醉话见心
醉话见心 2021-01-27 14:53

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

4条回答
  •  不思量自难忘°
    2021-01-27 15:35

    Some problems here:

    • if $student_grades_boy contains more than 1 item, your sql will have multiple WHERE statements (you can only have 1);
    • you need a space between SET and the column name;
    • you have a serious sql injection problem;
    • you should switch to PDO or mysqli as the mysql_ functions are deprecated.

提交回复
热议问题