Forums

PHP

This topic is locked

Image File Field Problem

Posted 04 Nov 2004 03:00:04
1
has voted
04 Nov 2004 03:00:04 steve copelin posted:
I have successfully had this working in th past, but i cannot for the life of me figure out what is going wrong.
I have two file fields in a form and using the php pure upload extension to upload and insert a record into a mysql db. So i test the page, type in some text for the textfield entries and press browse for the file fields and insert the images. Press submit for the form and the images upload and the text gets inserted into the db. But! the text that should save in the db for the file field doesnt go the the mysql db. The record has everything except the path for the uploaded images.
The mysql table looks OK, the two file fields are prod_thumb and prod_picture with type coloumn set as text and the Null field is no.
Does anyone ahve any thought on this one.

Cheers

Replies

Replied 04 Nov 2004 13:54:29
04 Nov 2004 13:54:29 Dave Cheetham replied:
Hi Steve,
Did you remember to apply the update record behavior first before the php upload.
Replied 04 Nov 2004 13:55:40
04 Nov 2004 13:55:40 Dave Cheetham replied:
Sorry, meant to say insert record behavior...
Replied 05 Nov 2004 00:15:21
05 Nov 2004 00:15:21 steve copelin replied:
yes, forgot to mention that insert record was done, just after the upload behaviour was done in the first message.

<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 10 Nov 2004 02:47:35
10 Nov 2004 02:47:35 steve copelin replied:
Shoot myself in the head. Arrhhh! one stupid mistake and i didnt see it for 3 days.

$_POST should have been $HTTP_POST_VARS

Someone send me a bullet.

Thanks

Reply to this topic