|
Posted by AnrDaemon on 10/21/07 14:03
Greetings, electric_r@yahoo.it.
In reply to Your message dated Thursday, October 18, 2007, 20:36:14,
eyi> Hallo,
eyi> I have 2 questions:
eyi> with php and mysql :
eyi> 1) How can I insert a text file into a TEXT field of a table ?
eyi> 2) How can I insert a microsoft word file into a BLOB field of a
eyi> table ?
eyi> Please, could you help me with a simple example ?
This is mostly SQL question.
PHP part may looks like:
$_field = *_sql_escape_string(file_get_contents('/path/to/document'));
*_sql_query("INSERT INTO tablename (fieldname) VALUES ('{$_field}')");
--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>
Navigation:
[Reply to this message]
|