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