mm looks like its almost working but i can't seem to get the file path right $data2 is stored in the data base i have called it in the header $data2 = $row["data2"];
I am currently using what you gave me
$file1 = file_get_contents($data2);
$file1 = mysql_real_escape_string($file1);
$sql02 = "update zloads set description1 = '$description2', data1 = '$file1', filename1 = '$filename2', filesize1 = '$filesize2', filetype1 = '$filetype2', thumbnailtype1= '$thumbnailtype2' where intProductID='$id'";
keeps giving me the following error?
I have tried numerous ways of ('$data2') ($data2) ('.$data2.') ($row["data2") I even tried "SELRCT data2 FROM zloads where intProductID='$id'" get the same error message every time????
Warning: file_get_contents(‰PNG ) [function.file-get-contents]: failed to open stream: No such file or directory in /home/hmtcompa/public_html/user/myaccount/updatepics.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/hmtcompa/public_html/user/myaccount/updatepics.php:59) in /home/hmtcompa/public_html/user/myaccount/updatepics.php on line 69
line 69 being // $file1 = file_get_contents($data2);
happy new year by the way