Re: How to save a file to a blob field?
| From: | Winston Valenzuela | Date: | Mon, 12 Feb 2001 09:56:22 +0000 |
| Subject: | Re: How to save a file to a blob field? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-5510@lists.php.net to get a copy of this message | ||
And this is the error that appears on the browser..
Warning: SQL error: [INTERSOLV][ODBC InterBase driver][InterBase]conversion
error from string "BLOB", SQL state S1000 in SQLExecDirect in
c:/homepages/message/post.php on line 7
> I'm using ODBC to connect to my Interbase 6 database. Using the code:
>
> $post_stmt = "Insert into
> MSGTABLE(firstname,middlename,lastname,msg_subject,msgbody,remote_ip)
>
> values('$fname','$mname','$lname','$subj','$mssg','$remote_ip')";
>
> and the msgbody field is a blob type. and the data came from a textarea
> field. But i got an error using this insert statement.
>
> How can i do it without an error?
>
>