UPDATE PictureProduct
SET Picture =
(SELECT * FROM OPENROWSET(BULK N'C:\1.jpg', SINGLE_BLOB) AS image)
WHERE Id = 6
INSERT INTO PictureProduct (Id, IdProduct, Picture)
SELECT 8, 4, BulkColumn
FROM Openrowset( Bulk 'C:\2.jpeg', Single_Blob) as image
<button onclick="doRequest()">кнопка</button>
function doRequest(){
$.post('myPhpFile.php', {
action: 'doFunctionOnServer'
}, function(data){
});
}
if($_POST['action'] && $_POST['action'] === 'doFunctionOnServer'){
$sql = "INSERT INTO test(id1, date)
VALUES ('$id1','$date')";
}
const src = 'Привет мир!';
const suffix = '98';
const srcArr = src.split(' ');
const reversed = srcArr.map(el => el.split('').reverse().join(''));
const target = reversed.map(el => el+suffix).join(' ');
console.log(target);
const src = 'Привет мир!';
const suffix = '98';
const target = src.split(' ').map(el => el.split('').reverse().join('')+suffix).join(' ');
console.log(target);