数据插入thinkphp中,
public function saveData(){ $gdGoods=M("goods"); $gdGoods ->execute("insert into ssw_goods(goodsName,goodsState,goodsCID,goodsDescr,goodsURL,goodsFansNum,goodsTureFansNum,goodsPrice,goodsSharePrice) values('{$_POST["gdName"]}','{$_POST["gdState"]}','0','{$_POST["gdDescript"]}','{$_POST["gdImage"]}','{$_POST["gdfans"]}','{$_POST["gdRealfans"]}','{$_POST["gdPrice"]}','{$_POST["gdCuPrice"]}')"); }
转载于:https://blog.51cto.com/8335914/1350012