Storing files on a Microsoft Access Database using PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Bravo
    New Member
    • May 2011
    • 1

    Storing files on a Microsoft Access Database using PHP

    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:

    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'];
    or is there any other way to upload / store files using php and access database?

    thanx very much
  • Gaurav Pruthi
    New Member
    • Dec 2011
    • 7

    #2
    Try reading :
    Sorry! We can't seem to find the resource you're looking for

    Comment

    Working...