<php
$con = mysql_connect("localhost","root","");
mysql_select_db("database",$con);
mysql_query("set names utf8");
$sql="";//把$string更新或者插入sql insert into `table` (`img`) values ('$goods_img') 或者 update `table` set img='$goods_img' where xxx='xxx';
mysql_query($sql);
//上述为示例, *** 作方法如此
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)