Re: How to save a file to a blob field?

From: Date: Tue, 13 Feb 2001 12:43:03 +0000
Subject: Re: How to save a file to a blob field?
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-5543@lists.php.net to get a copy of this message
This is the error that appeared: 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 > Easier to diagnose if you tell us what the error was? > > Winston Valenzuela wrote: > > > 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? > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > For additional commands, e-mail: php-windows-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > ---------------------------------------------------------------------------- ---- > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#5543) next »