File upload problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Fari
Forum Commoner
Posts: 42
Joined: Thu Sep 19, 2002 8:41 pm
Location: Timmins - Ontario

File upload problem

Post by Fari »

Hi guys!

the following script, which is part of a FORM input:

Code: Select all

elseif ((mysql_field_type ( $result , $i )) == 'blob')
 echo"<TD><INPUT TYPE="FILE" NAME="new_stuff&#1111;$i]"></TD>";
correctly opens the file selection dialog box if the data base field type is 'blob' as intended but it actually loads the path to the file as a string instead of the file itself!

Any iideas why?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

probably because you store the filename in 'field' $i?
read http://www.php.net/manual/en/function.fopen.php
Post Reply