|
Posted by Henri on 10/20/07 15:05
On Fri, 19 Oct 2007 23:26:07 +0100, The Natural Philosopher wrote:
> Henri wrote:
>> On Thu, 18 Oct 2007 09:36:59 -0700, electric_r wrote:
>>
>>> Hallo,
>>>
>>> I have 2 questions:
>>>
>>> with php and mysql :
>>>
>>> 1) How can I insert a text file into a TEXT field of a table ?
>>
>> textarea value="<?php echo thefile; ?>" something like that
>>
>>> 2) How can I insert a microsoft word file into a BLOB field of a table
>>> ?
>>
>> wouldn't it be more practical to just store the file's path instead of
>> the file itself?
>
> Actually it isn't.I ended up with EVERYTHING - files and images - in the
> database simply because backing up the database then backs up
> EVERYTHING.
>
ok, good point. I was just not thinking in terms of back ups.
> But I wouldn't use a text area to input a file..use the FILE input
> command.
that was my misanderstanding the first question.
>
>>> Please, could you help me with a simple example ?
>>>
>>> Thank you .
>>>
>>> Fab
>>
[Back to original message]
|