Forums
This topic is locked
insert record - file field not working
Posted 17 Aug 2005 18:53:44
1
has voted
17 Aug 2005 18:53:44 Bruce Keller posted:
Hello,I am creating a small cataglog, and I am knew the the PHP database functions of Dreamweaver MX, but I've been using Dreamweaver for years.
I am about to get the pure php upload extension and was just testing the form first.
However when I change insert record form field to "file" ,in order insert an image for that record, I am able to browse to the file I want and insert the record but NO image shows up when I view the record in the webpage set up to view the records. Also when I browse the record using phpmyadmin there is no data in that field in the record. I can't figure out what I'm doing wrong...I figure I should know how to do this before migrating to using the upload extension. BTHW when I defined the field in the mysql database initially I defined it as varchar(64) Null and default to Null.
Hope someone can help!
Thanks!
Replies
Replied 06 Sep 2006 23:56:39
06 Sep 2006 23:56:39 Steve Koontz replied:
This solution is for ASP pages, but might lead you to a PHP solution.
www.adobe.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_16542&extid=tn_16542&dialogID=35700907&iterationID=1&sessionID=9630fd859a0ee5fb5496&stateID=0+0+35706883&mode=simple
The file field changes the enctype in the form code.
Steve
Edited by - stkoontz on 06 Sep 2006 23:57:52
www.adobe.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_16542&extid=tn_16542&dialogID=35700907&iterationID=1&sessionID=9630fd859a0ee5fb5496&stateID=0+0+35706883&mode=simple
The file field changes the enctype in the form code.
Steve
Edited by - stkoontz on 06 Sep 2006 23:57:52
Replied 07 Sep 2006 18:10:05
07 Sep 2006 18:10:05 Roddy Dairion replied:
Did u created the script that will upload the image to the server?