Reply to Re: DB cuts off data

Your name:

Reply:


Posted by Arjen on 01/11/07 12:38

Dave Nash schreef:
> On Thu, 11 Jan 2007 13:25:34 +0100, Arjen <dont@mail.me> wrote:
>
>>> 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"
>> I know what's wrong :-)
>>
>> Take a good look at the var dump .. function and compare it with this
>>
>> $lala =array('name'=>'file.jpg');
>> var_dump($lala);
>>
>> //array(1) { ["name"]=> string(8) "file.jpg" }
>
> Lost me a bit.
>
> heres the code I have. what needs changing.
>
> $query="UPDATE categories SET catname='$ud_catname',
> image='{$ud_image["name"]}', parentid='$parentid' WHERE
> catid='$ud_catid'";
> @mysql_select_db($database) or die( "Unable to select database");
> mysql_query($query);
> var_dump($ud_image);
> var_dump($_FILES);
>
That code is ok. the array (as I understand it ... the var_dump output
doesn't seem complete)

To me it looks like ur array look like this

$file['filename.ext']="filename.ext";
insted of
$file['name']="filename.ext";

--
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

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