//保存图片到数据库的php代码 复制代码 代码如下: If($Picture != “none”) { $PSize = filesize($Picture); $mysqlPicture = addslashes(fread(fopen($Picture, “r”), $PSize)); mysql_connect($host,$username,$password) or die(“Unable to connect to SQL server”); @mysql_select_db($db) or die(“Unable to select database”); mysql_quer