On Apr 15, 2004, at 11:47 PM, Anthony Ritter wrote:
John W. Holmes <[EMAIL PROTECTED]> 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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php