且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

MySQL中的PHP更新表无法正常工作

更新时间:2023-09-16 23:05:10

您的查询有两个问题...

There are two issues with your query...

在位置"部分和p_stock上缺少的分隔符之前,您还有一个逗号.

You Have one extra comma before the Where Section and your missing delimeters on p_stock.

应该是: "p_stock = '" . $_POST["updateProductStock"] . "' ". "WHERE id='" . $_GET['id'] . "'";