mysql update table ajax by class

前端 未结 1 1768
無奈伤痛
無奈伤痛 2021-01-24 19:23

i\'m trying to update rows quantity using ajax by class not id i have looked on google for hours trying to work this out but everything i could find didnt seem to work

m

相关标签:
1条回答
  • 2021-01-24 19:41
    1. Your code is vulnerable to SQL injection.

    2. You're using a deprecated API which does not support prepared statements to prevent SQL injection

    3. You can combine your UPDATE and SELECT into a single statement. Here's an idea

    4. Your deduction should be database based, not value based

      UPDATE tbl UPDATE col = col - 1

    0 讨论(0)
提交回复
热议问题