在表格中添加或减少数量 [英] Adding or subracting from quantity in a table

查看:78
本文介绍了在表格中添加或减少数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好家伙


我试图在php中编写一个简单的库存系统bt在数据库中添加或减少特定产品数量时遇到问题,

当我从add and subract表单提交时,我写的更新代码不起作用,它甚至不会给我任何错误解决,当我检查我的数据库时它没有改变..

PLZ任何知道我做错了什么shuld帮助我

谢谢

,,,,,,这是加法和减法表格代码

hello guys

Am trying to write a simple inventory system in php bt am having problem with adding or subracting from a particular product quantity in the databse,
The update code i wrote is not working infact when i submit from the add and subract form it wil not even give me any error to tackle and when i check my database it has not change..
plz any that know what am doing wrong shuld help me
Thanks
,,,,,,This is the Add and subract form code

展开 | 选择 | Wrap | 行号

推荐答案

第68行和第81行应该做什么?
what are lines #68 and #81 supposed to do?


他们要检查是否有错误在查询然后给出了错误..但它是b
they are to check if there is error in the query then give the eror.. but it was to b


结果我用来查询数据库的变量而不是result.thanks

plz任何帮助或你觉得代码错误
result the variable i use to query the database not result.thanks
plz any help or wht did u think is wrong with the code


这篇关于在表格中添加或减少数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆