[PHP] PHP] Re: Store uploaded files in MySQL-BLOB

2001-07-10 Thread Tom Gitzinger
- Original Message - From: "Adam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 12:20 PM Subject: [PHP] Re: Store uploaded files in MySQL-BLOB > I would suggest setting the database column to LONGTEXT instead of BLOB > since it can accomidate far more characte

[PHP] Store uploaded files in MySQL-BLOB

2001-07-10 Thread Tom Gitzinger
Hi friends, could anybody tell me how I best store one or several uploaded files in a MySQL database (as a BLOB). I use PHP 3. Let's say I have the variable $userfile. Is it possible to simply insert this into the database? $query = "INSERT INTO ... (file) VALUES (" . $userfile . "); By the

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Tom Gitzinger
Hello Richard, I'm not quite sure but I think the problem is the following: - If no month has been specified, the variable $month is not defined. - If you then mention $month in if ($month == "") the Parser creates the variable. Its value is unpredictable, but it is most unlikely