sage-
From: Adam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 3:20 AM
To: [EMAIL PROTECTED]
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 characters per entry.
As for the e
Tom,
First, I suggest using LONGBLOB as a field...
Second, Once the $userfile is uploaded...use the statment as:
$query = "INSERT INTO ... (file) VALUES ( LOAD_FILE($userfile))";
using the MySql's LOAD_FILE()
"Tom Gitzinger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL P
> The project is a kind of knowledge base. For each entry a user creates, he
> should be able to give additional information, such as every kind of file
> (i.e. not only code files but also images etc).
> There is an where he selects the file to be
> uploaded. The php-script is simply supposed to
- 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
> sinc
I would suggest setting the database column to LONGTEXT instead of BLOB
since it can accomidate far more characters per entry.
As for the entry to the database through php, I'm not entirely sure what
method you're using to add these. Are they uploading their file and then it
reads it as it exists
5 matches
Mail list logo