ckennerdale
Programmer
I have written an upload script for adding images to a mysql database in a blob field
I use a command such as
$imagedata2 = addslashes(fread(fopen($nu_userfile, "r", filesize($nu_userfile)));
to take the image i select from my hard drive an insert into the table. This allworks and isfine,
However,i also have an edit page,and using the inserinto function can edit allfields in my databaseexcept forthe binary one.
I am using the same line ofcode asabove to take the binaty data,but it only deletes the previous image anddoesntreplace with a newone.
has any one had this experience? Caspar Kennerdale
Senior Media Developer
I use a command such as
$imagedata2 = addslashes(fread(fopen($nu_userfile, "r", filesize($nu_userfile)));
to take the image i select from my hard drive an insert into the table. This allworks and isfine,
However,i also have an edit page,and using the inserinto function can edit allfields in my databaseexcept forthe binary one.
I am using the same line ofcode asabove to take the binaty data,but it only deletes the previous image anddoesntreplace with a newone.
has any one had this experience? Caspar Kennerdale
Senior Media Developer