Page 1 of 1

File upload problem

Posted: Thu Oct 17, 2002 1:05 pm
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?

Posted: Thu Oct 17, 2002 2:24 pm
by volka
probably because you store the filename in 'field' $i?
read http://www.php.net/manual/en/function.fopen.php