Incorrect integer value: '' for column 'eng_atsihuservaud_timeshosp' at row 1
if ($mysqli->query($query) === TRUE) {
printf("Record successfully created.");
} else printf("NOT successfully created.");
вот такая проверка выдает TRUE var ctx = canvas.getContext("2d");
var context = canvas.getContext("2d");
ctx.putImageData(context.getImageData(0,0,width,height),0,0);
canvas.msToBlob(function(blob) {
saveAs(blob, "chart.png","image/png");
});
Unable to get property 'getImageData' of undefined or null reference
if (canvas.msToBlob) { //for IE
console.log('EI');
var ctx = canvas.getContext("2d");
ctx.putImageData(canvas.context.getImageData(0,0,width,height),0,0);
canvas.msToBlob(function(blob) {
saveAs(blob, "chart.png","image/png");
});
} else {...
Unable to get property 'getImageData' of undefined or null reference
if (canvas.msToBlob) { //for IE
console.log('EI');
var ctx = canvas.getContext("2d");
ctx.putImageData(canvas.context.getImageData(0,0,width,height),0,0);
canvas.msToBlob(function(blob) {
saveAs(blob, "chart.png","image/png");
});
} else {...
Object doesn't support property or method 'getImageData'
if (canvas.msToBlob) { //for IE
console.log('EI');
var ctx = canvas.getContext("2d");
ctx.putImageData(canvas.context.getImageData(0,0,width,height),0,0);
canvas.msToBlob(function(blob) {
saveAs(blob, "chart.png","image/png");
});
} else {...
// Create the export function - this will just export
// the first svg element it finds
// Select the first svg element
var svg = d3.select("svg")[0][0],
img = new Image(),
serializer = new XMLSerializer(),
svgStr = serializer.serializeToString(svg);
img.src = 'data:image/svg+xml;base64,'+window.btoa(svgStr);
var canvas = document.createElement("canvas");
//document.body.appendChild(canvas);
canvas.width = width;
canvas.height = height;
if (canvas.msToBlob) { //for IE
console.log('EI');
canvas.getContext("2d");
canvas.msToBlob(function(blob) {
saveAs(blob, "chart.png","image/png");
});
} else {
//other browsers
canvas.getContext("2d").drawImage(img,0,0,width,height);
canvas.toBlob(function(blob) {
saveAs(blob, "chart.png","image/png");
});
}
canvas.getContext("2d").drawImage(img,0,0,width,height);
<script async="" src="https://cdn.rawgit.com/eligrey/Blob.js/0cef2746414269b16834878a8abc52eb9d53e6bd/Blob.js"/>
<script async="" src="https://cdn.rawgit.com/eligrey/canvas-toBlob.js/f1a01896135ab378aa5c0118eadd81da55e698d8/canvas-toBlob.js"/>