You are here: Re: DB cuts off data « All PHP « IT news, forums, messages
Re: DB cuts off data

Posted by Dave Nash on 01/11/07 13:40

On Thu, 11 Jan 2007 13:35:17 +0000, Geoff Berrow
<blthecat@ckdog.co.uk> wrote:

>Message-ID: <esecq2donr49l6d22dfuk4ndfng9kll9dl@4ax.com> from Dave Nash
>contained the following:
>
>>$query="UPDATE categories SET catname='$ud_catname',
>>image='".$_FILES['image']['name']."', parentid='$parentid' WHERE
>>catid='$ud_catid'";
>
>No, that has to be $_FILES['ud_image']['name']

ive made this change and the db updates fine. wahoooo. thanks.

Tested live and works too.

Shoud I worry about this error in the output.

Array ( [ud_image] => Array ( [name] => button_08.gif [type] =>
image/gif [tmp_name] => /tmp/phpGmV8jp [error] => 0 [size] => 1154 ) )
UPDATE categories SET catname='Motorised scooters',
image='button_08.gif', parentid='43' WHERE catid='51'

cheers
David.

 

Navigation:

[Reply to this 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

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