Welcome Guest, Not a member yet? Register   Sign In
uploading an image (BLOB) to mysql
#10

Well I got it up there. Turned out to be fact that the primary key was in the
$BLOB_insert = array(
"id" => $primary_key, <<<<here
"img_BLOB" => $data
);

What finally worked was:
$this->db->set('img_BLOB', $szFile3);
$this->db->where('id', $primary_key); <<using id in the where statement instead of the update
$this->db->update('word');
proof that an old dog can learn new tricks
Reply


Messages In This Thread
uploading an image (BLOB) to mysql - by richb201 - 03-19-2021, 09:04 AM
RE: uploading an image (BLOB) to mysql - by richb201 - 03-25-2021, 05:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB