|
Posted by Dave Nash on 01/11/07 11:56
On Thu, 11 Jan 2007 12:51:35 +0100, Arjen <dont@mail.me> wrote:
>Dave Nash schreef:
>> On Thu, 11 Jan 2007 12:15:18 +0100, Ruben van Engelenburg
>> <nospam@nospam.com> wrote:
>>
>>> Dave Nash wrote:
>>>
>>>> Call me silly but how do I echo the query?
>>> Like this :)
>>>
>>> $query="UPDATE categories SET catname='$ud_catname',
>>> image='{$ud_image["name"]}', parentid='$parentid' WHERE catid='$ud_catid'";
>>>
>>> echo $query;
>>>
>>> Ruben.
>>
>> Echo query =
>>
>> UPDATE categories SET catname='Hockey Sticks', image='s',
>> parentid='43' WHERE catid='43'
>>
>> but the image is called send-out1.jpg
>
>What is this $ud_image ? You are not referring ot it anywhere
>
>try this at the end of ur script
>
>var_dump($ud_image);
>var_dump($_FILES);
This is what I get back after adding your code.
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) { } UPDATE categories SET catname='Hockey Sticks', image='F',
parentid='43' WHERE catid='43'
ud_image is referenced is the previous form...
<input name="ud_image" type="file" class="form" id="image" />
Navigation:
[Reply to this message]
|