oh okay, i'm beginning to understand this a little...so assuming i have a file called ruby.pdf , and a table called, may be stdlibrary...will this be right/?
$fileuploaded = $FILES[B][I]['uploadfile'][/I][/B]['ruby']; /// should this stay as it is??
$mimetype = mime_content_type($fileuploaded);
$insert = query("INSERT INTO files (mimetype, file) VALUES (?, ?), $mimetype, $fileuploaded";
// bind $mimetype and file_get_contents($fileuploaded) accordingly ......... ///sorry i didnt understand this bit, i guess that's something like the command for downloading the file, right??
2.and how could we implement a field with a browse button, which users can click and browse their computer for files to upload? i assume we're to use $_POST somehow?