I cant find a solution or help on the net, for storing files, using PHP and Microsoft Access.. i tried with the "attachment s" data type from Access, but it will not successfull somehow!!
I was trying something similair to this:
or is there any other way to upload / store files using php and access database?
thanx very much
I was trying something similair to this:
Code:
$file= $_FILES["filelocatie"]; $name = $_FILES['filelocatie']['name']; $mime = $_FILES['filelocatie']['type']; $data = file_get_contents($_FILES['filelocatie']['tmp_name']); $size = intval($_FILES['filelocatie']['size']); $sql = "UPDATE table SET "; $sql .= "file.FileDate=' $data ', file.FileName=' $name ', file.FileType=' $mime ' "; $sql .= "WHERE table_id=".$_SESSION['id'];
thanx very much
Comment