[PHP-DB] Uploading a file

2002-03-29 Thread Clever

Hi,
I want to upload a file to the server using a form.
Instead of using a text input, i'd like to open an Internet Explorer window,
(that one that apears when you click on File/Open).
I already have the code to copy the file.
I only want a way to select from local files.
How do this?
Thanks
- Original Message -
From: Clever [EMAIL PROTECTED]
To: Natividad Castro [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, March 28, 2002 10:26 PM
Subject: Re: [PHP-DB] end of file


 It's simple.
 The mysql_fetch_array($result)  function will return a false value.

 example :
 if ( !mysql_fetch_array($result) ) {
 // Then do what u want
 }
 - Original Message -
 From: Natividad Castro [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 29, 2002 5:58 PM
 Subject: [PHP-DB] end of file


  Hi to all,
  how can I handle when the recordset reach the last record?
  is it possible to use eof?
  e.g. if there is no more record, do something
 
  Thanks in advanced
  Nato
 
 
 
  --
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 



 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Uploading a file

2002-03-29 Thread Jason Wong

On Friday 29 March 2002 09:58, Clever wrote:
 Hi,
 I want to upload a file to the server using a form.
 Instead of using a text input, i'd like to open an Internet Explorer
 window, (that one that apears when you click on File/Open).
 I already have the code to copy the file.
 I only want a way to select from local files.
 How do this?

Not sure what you mean by open an Internet Explorer window. But if you want 
a file select dialog then your form needs to be something like:


form enctype=multipart/form-data action=doodah.php method=post
input type=file name=file size=60
input type=submit name=action value=Upload!
/form


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
I don't want people to love me.  It makes for obligations.
-- Jean Anouilh
*/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php