有什么想法吗?我已经花了几个小时在看这个,看不到它。 连接很好。
var height = 200;
var width = 200;
canvas.width = width;
canvas.height = height;
var ctx = canvas.getContext('2d');
ctx.strokeStyle = '#090';
ctx.beginPath();
ctx.arc(width/2, height/2, width/2 - width/10, 0, Math.PI*2);
ctx.stroke();
canvas.toBlob(function (blob) {
//consider blob is your file object
var reader = new FileReader();
reader.onload = function () {
console.log(reader.result);
}
reader.readAsBinaryString(blob);
});
输出:
$DB = new mysqli("127.0.0.1", "Account Here", "Password Here", "DB Here", "Port");
$query = $DB->prepare("INSERT INTO `Users`(`FirstName`, `LastName`, `Email`, `UserName`, `UserNameHash`, `PasswordHash`, `PasswordSalt`) VALUES (?, ?, ?, ?, ?, ?, ?)");
$query->bind_param("sssssss", $FirstName, $LastName, $Email, $Username, $EUsername, $EPassword, $Salt);
if($query->execute()){
echo "executed <BR />";
}else{
echo "Failed <BR />";
}
$query->close();
mysqli_close($DB);
echo "complete";
已建议我启用已启用的错误,并删除If语句,这是我这样做时的输出:
Failed
Complete