更新MySQL字段 [英] Updating MySQL Field
本文介绍了更新MySQL字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿
请我想做一些事情,通过向其添加整数来更新MySQL字段,但它不起作用:S,这是我的代码
Hey
please i want to do something that update a MySQL field by adding interger to it but it doesn''t work :S, here is my code
$credits2 = intval($credits);
mysql_query("UPDATE secretcodes SET uses=uses + $credits2 WHERE secretcode='$secretcode'");
请帮忙
在此先感谢
Please help
Thanks in advance
推荐答案
credits2 = intval(
credits2 = intval(
credits); mysql_query("
credits); mysql_query("UPDATE secretcodes SET uses=uses +
credits2 WHERE secretcode ='
credits2 WHERE secretcode='
这篇关于更新MySQL字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文