in your mysql query direct from $_POST use:,
Code:
mysql_query("INSERT INTO blah VALUES(NULL,LOAD_FILE('$_FILES['file']['tmp_name']'),'$value2')");
If you uploaded the file first, do a:
Code:
move_uploaded_file(soruce,destination.filename);
then
Code:
chmod(destination.filename,octdec("0777"));
then
Code:
mysql_query("INSERT INTO blah VALUES(NULL,LOAD_FILE('destination.filename'),'$value2')");
then
Code:
chmod(destination.filename,octdec("0644"));
To make it normal again.. As far as I know only 1 file per BLOB.