Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想添加用户输入值($itm_sld)+现有值itm_sld 我使用这个代码
($itm_sld)
itm_sld
<?php $sql="UPDATE itm_tot SET itm_sld = itm_sld + '$itm_sld' WHERE itm_no='$itm_no'"; ?>
但新值由 UPDATEDitm_sld = itm_sld + (itm_sld + '$itm_sld')
itm_sld = itm_sld + (itm_sld + '$itm_sld')
itm_sld我应该怎么做才能更新(itm_sld + '$itm_sld')
(itm_sld + '$itm_sld')
谢谢....
检查 字符串连接的CONCAT()方法。