我想要创建一个函数,它将接收作为参数的值,并将它们上传到MySQL数据库。我的问题是将blob传递给函数并将其上传到数据库。description,$submitted_by,$screenshot) $conn = $this->connect(); //connect to the database
$sql0000-00-0000:00:00.000000','$id','$status
当我尝试将JPEG图像上传到我的MySQL数据库(图像是一个BLOB)时,我收到以下错误:
You have an error in your SQL syntax; check the manualSQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to useid=57 (Image) VALUES ('ÿØÿà\0