Re: [PHP] binary data in php

2004-04-16 Thread Marek Kilimajer
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

Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
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

Re: [PHP] binary data in php

2004-04-16 Thread Marek Kilimajer
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

Re: [PHP] binary data in php

2004-04-16 Thread Jason Wong
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. > >

Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
"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?

Re: [PHP] binary data in php

2004-04-16 Thread Anthony Ritter
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 ..

Re: [PHP] binary data in php

2004-04-16 Thread Lowell Allen
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

Re: [PHP] binary data in php

2004-04-15 Thread John W. Holmes
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

Re: [PHP] binary data in php

2004-04-15 Thread Anthony Ritter
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

Re: [PHP] binary data in php

2004-04-15 Thread John W. Holmes
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",