Anthony Ritter wrote:
However when clicking the getdata.php link - the file does not appear on the
screen.
The code is below.
Thank you for your time.
TR
.
//getdata.php
Remove @'s while debugging.
@mysql_select_db("sitename");
$query = "SELECT bin_data,description,filetype
Marek Kilimajer <[EMAIL PROTECTED]> wrote in message:
> You said register globals are off, didn't you? Where is the above
> variable set then?
>
> :)
...
That was it.
Many thanks Marek and others.
Checking through the command line the file was uploaded to mysql database.
Howeve
Anthony Ritter wrote:
Any other thoughts?
Best...
TR
...
You said register globals are off, didn't you? Where is the above
variable set then?
:)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 16 April 2004 20:35, Anthony Ritter wrote:
> I know that there is no binary file upload to the table called binary_data
> in mysql database since I checked if there was a new entry through the
> command line after I submit.
>
> After I hit submit, the field that I inserted are blank.
>
>
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message:
> So what's the output? How do you know it's not working? If you're not
> getting an error, then your query is running and something is going in
> the database. Are you sure the problem isn't in how you're displaying
> the data?
Lowell Allen <[EMAIL PROTECTED]> wrote in message:
> You might try using "$HTTP_POST_FILES" rather than "$_FILES" -- was
> necessary in my code recently.
>
> --
> Lowell Allen
...
Lowell,
Thank you.
I tried that in code below.
Still - no dice.
Any other thoughts?
Best...
TR
..
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() belo
Anthony Ritter wrote:
I inserted the mysql_query() below
but it still doesn't upload the file nor does it throw an error.
[snip]
// Create the SQL query.
$sql = "INSERT INTO binary_data SET
filename = '$uploadname',
filetype = '$uploadtype',
description = '$uploaddesc',
bin_data
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
Anthony Ritter wrote:
Greets,
Register globals are to off - however the files will not upload.
At wit's end - help please!
Thank all in advance.
TR
// connect to the database
// (you may have to adjust the hostname,username or password)
MYSQL_CONNECT("localhost","root",
10 matches
Mail list logo