database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
ㆍInformix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Informix Q&A 1331 게시물 읽기
No. 1331
Re: 순서가 틀린가요??
작성자
김건수
작성일
2002-03-02 07:11
조회수
4,815

제가 php는 안써봐서 잘 모르겠는데..

 

 

$que="insert into board (parent_id, name, title, date, time, password, email, content) values

('$max_parent_id','$name','$title', '$date', '$time', '$password', '$email', '$content')";

 

에서 $content가 $blob_content로 들어가야 하는게 아닌가요?

 

content라는 컬럼이 text죠?

 

text는 simple large object인데..

 

에러 메세지 617은 simple large object에 simple large object 가 아닌

 

값이 들어와서 에러났다! 그런뜻입니다.

 

그럼..

 

-- 답답이 님이 쓰신 글:

>> 글쓰기하고 저장하면...

>> 아래와 같은 에러가 계속 떨어집니다.

>>

>> Warning: Prepare fails (E [SQLSTATE=IX 000 SQLCODE=-617]) in /usr/local/apache/htdocs/myung/mtboard.php on line 415

>>

>> Warning: Supplied argument is not a valid Informix Result resource in /usr/local/apache/htdocs/myung/mtboard.php on line 417

>> 글쓰기에 문제가 째끔 있네요

>>

>>

>> mtboard.php 글쓰기 소스---------

>>

>> function write($name,

>> $email,

>> $title,

>> $password,

>> $content)

>>

>> {

>> $que="select max(parent_id) from board";

>> $this->rlt = ifx_query($que, $this->con);

>>

>> $parent_id = ifx_fetch_row($this->rlt, "first");

>> $max_parent_id = $parent_id["(max)"] + 1;

>>

>> ifx_free_result($this->rlt);

>>

>> $title=htmlspecialchars($title);

>>

>> $name=addslashes($name);

>> $title=addslashes($title);

>> $content=addslashes($content);

>>

>>

>> $date=date("Y.m.t");

>> $time=date("h:i:s");

>> $password=crypt($password, $password);

>>

>>

>> $blob_content=ifx_create_blob(1, 0, $content);

>> $blob_id[] = $blob_content;

>>

>> // echo $email.$title."<br>";

>>

>>

>>

>> $que="insert into board (parent_id, name, title, date, time, password, email, content) values

>> ('$max_parent_id','$name','$title', '$date', '$time', '$password', '$email', '$content')";

>>

>> echo ($que);

>>

>> $rid=ifx_prepare($que, $this->con, $blob_id); ====> 415

>>

>> if(!ifx_do($this->rid)) { =====>417

>> die ("글쓰기에 문제가 째끔 있네요");

>> echo ifx_error();

>> return;

>> }

>> }

[Top]
No.
제목
작성자
작성일
조회
1325Wildcard matching....
윤봉승
2002-03-01
5660
1328┕>Re: Wildcard matching....
김건수
2002-03-02 06:53:29
5411
1324jdbc연결과..... 첨인포믹스접할때..
넘팽이
2002-03-01
4409
1329┕>Re: jdbc연결과..... 첨인포믹스접할때..
김건수
2002-03-02 07:03:37
5063
1323db관련프로그램의 cpu점유 [1]
이원준
2002-02-28
4342
1330┕>Re: db관련프로그램의 cpu점유
김건수
2002-03-02 07:07:51
4953
1322순서가 틀린가요??
답답이
2002-02-27
4405
1331┕>Re: 순서가 틀린가요??
김건수
2002-03-02 07:11:12
4815
1318[잡담?] 여기 계신분들 Informix 는 어떤 OS 에서 사용하시나요?
박지호
2002-02-27
4218
1319┕>Re: [잡담?] 여기 계신분들 Informix 는 어떤 OS 에서 사용하시나요?
김건수
2002-02-27 12:03:05
4995
1317[질문] 스크립트로 돌리는 프로시저를...
이선희
2002-02-26
4534
1320┕>Re: [질문] 스크립트로 돌리는 프로시저를...
김건수
2002-02-27 13:10:54
5609
1301초보 informix 입니다.
informix
2002-02-25
4390
1309┕>Re: 초보 informix 입니다.
김건수
2002-02-26 16:05:31
4874
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.029초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다