SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Editing a Mysql BLOB field

    Hello,
    I have a BLOB field in my DB that I need to edit. I'm using PHPmyadmin which lets me download an unserlialized text version on the contents, and then upload it back again. The problem is that when I edit the file and upload it back I'm getting PHP errors (Invalid argument supplied for foreach()) that I guess indicate that I'm not saving the file properly (?).

    Can anyone guide me through the process of doing it right?

    Thanks!

  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Welcome to the SP forums.

    You get PHP errors when using phpMyAdmin?

  3. #3
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No sorry, I get the PHP error on page loads after updating the BLOB field. On phpMyAdmin I get confirmation on the successful update.

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    Could you post the code here?

  5. #5
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by guido2004 View Post
    Could you post the code here?
    Guido, do you mean the error code, or..?

  6. #6
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,506
    Mentioned
    163 Post(s)
    Tagged
    4 Thread(s)
    No, the PHP code that is causing the error.


Bookmarks

Posting Permissions

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