Re: binary data in php

From: Date: Fri, 16 Apr 2004 11:59:26 +0000
Subject: Re: binary data in php
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-183607@lists.php.net to get a copy of this message
On Apr 15, 2004, at 11:47 PM, Anthony Ritter wrote:
John W. Holmes <holmes072000@charter.net> wrote in message:
Remember... we're laughing with you, not at you. You forgot to call mysql_query() in your code. :)
................. Hmmm... I wish it was as simple as that. I inserted the mysql_query() below but it still doesn't upload the file nor does it throw an error. If you get a chance please take a look and advise. Again, my thanks for your help, TR ................................ <? if ($submit) { // connect to the database // (you may have to adjust the hostname,username or password) MYSQL_CONNECT("localhost","root","mypass"); mysql_select_db("mydb"); $uploadfile = $_FILES['form_data']['tmp_name']; $uploadname = $_FILES['form_data']['name']; $uploadtype = $_FILES['form_data']['type']; $uploaddesc = $_POST['desc'];
[snip] You might try using "$HTTP_POST_FILES" rather than "$_FILES" -- was necessary in my code recently. -- Lowell Allen

« previous php.general (#183607) next »