Posted by Arjen on 01/11/07 13:33
Geoff Berrow schreef:
> 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
No it isn't we allready knew this !
> Check you have out put in the $_FILES array by outputting it to screen
>
> e.g.
> print_r($_FILES);
> var_dump($ud_image);
> >var_dump($_FILES);
F:\\webserver\\2006_11_November\\morgan_sports\\images\\buttons\\morgan_sports_11.gifstring(85)
"F:\\webserver\\2006_11_November\\morgan_sports\\images\\buttons\\morgan_sports_11.gif"
array(0) { }
> also check you have set the form correctly
>
> <FORM ENCTYPE="multipart/form-data" method="post" action="<wherever your
> processing script lives>")
>
--
Arjen
http://www.hondenpage.com - Mijn site over honden
Navigation:
[Reply to this message]
|