When you use <input type="file" name="file_open">, the information about the uploaded file is put in $_FILE, not $_POST. The file contents are put into a temporary file, and $_FILE['file_open']['tmp_name'] contains the pathname to this temporary file. You can then redirect this to the mysql command, using < filename for shell input redirection.