Reply to Re: DB cuts off data

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация