Results 1 to 8 of 8

Thread: Update a BLOB

Threaded View

  1. #6

    Thread Starter
    Member
    Join Date
    Jan 2009
    Posts
    49

    Re: Update a BLOB

    My old script that worked is in the first post.

    This inserted a BLOB into the database. With the new script I am trying to:

    1) upload the file to the server folder structure
    2) insert the filename into the image field in the product table

    (Which I assume my modified example code should be doing)

    Also my hoster told me file_uploads is on... I'm not sure why the $_FILES array is empty. The form isn't inside another form, the method is POST and the field is named as per the code (picture1).... is should be outputting something like:

    [picture1] => Array
    (
    [name] => filename.jpg
    ... etc
    )

    Just thinking about it I will need to create another field in the DB to store the filename varchar (rather then a BLOB). .... edit: Have now done this, though still getting the notice about picture1 not being defined and the array being empty.

    $picture1=mysql_real_escape_string($_POST['picture1']); shouldn't be stipping anything in the filename either? According to my error its got nothing to strip anyway

    Will keep looking as it must be something simple to get me past this early stage.
    Last edited by buffy; Jul 13th, 2009 at 05:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width