Posted by Geoff Berrow on 01/11/07 13:25
Message-ID: <q5dcq21626a1qlnps69fi1uo63mfin6mot@4ax.com> from Dave Nash
contained the following:
>>$query="UPDATE categories SET catname='$ud_catname',
>>image='".$_FILES['ud_image']['name']."', parentid='$parentid' WHERE
>>catid='$ud_catid'";
>>
>>should work.
>
>ive tried this code and the following comes up... And it also clears
>the exisitng variable in the 'image" fields of the db.
This is progress! :-) It means that variable is probably empty. It
shouldn't be.
>
>send-out1.jpgstring(13) "send-out1.jpg" array(0) { } UPDATE categories
>SET catname='No Parent Category', image='', parentid='43' WHERE
>catid='44'
Check you have out put in the $_FILES array by outputting it to screen
e.g.
print_r($_FILES);
also check you have set the form correctly
<FORM ENCTYPE="multipart/form-data" method="post" action="<wherever your
processing script lives>")
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
[Back to original message]
|