Background Image

FORUM

조회 수 11935 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

큐브리드와 php 연동을 할려는데 문제가??

아래처럼 했는데도 아무런 에러도 않나오는데....

큐브리드 메니져 로 보면 테이블(클래스)가 생성이 않되어 있네요?? 무슨문제일까요??

<?

$host_ip = "localhost";
   $host_port = 33000;
   $db_name = "mydb1";
$id = "lee";
$pw = "암호";


$cubrid_con = cubrid_connect($host_ip, $host_port, $db_name,$id,$pw);
   if (!$cubrid_con) {
       echo "DB 접속 오류";
       exit;
   }

 

$sql = "CREATE TABLE mem (
uid        INT    NOT NULL PRIMARY KEY,
name VARCHAR(40) NOT NULL,
email VARCHAR(40) NOT NULL

);";


$result = cubrid_execute($cubrid_con, $sql);

if($result){
 
 echo "성공";

}

   ?>

  • ?
    Prototype 2009.07.01 03:25
    안녕하세요.
    큐브리드의 php인터페이스는 명시적으로 커밋을 하셔야 합니다.
    if($result) 안에 다음의 명령을 추가하시면 정상 작동 할 것입니다.

    if($result){
    echo "성공";
    cubrid_commit($cubrid_con); 
    }
  • ?
    흑심품은연필 2009.07.01 22:08
    휴 2일을 고생했는데 해결이되네요 답변감사 합니다..
     
    큐브리드는 트렌젝션을 기본적으로 사용해야 하는군요 ^^ mysql 하고는 다르네요 ^^

  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views49
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4458
    read more
  3. cubrid.jdbc.jci.JdbcCacheWorker에서 java.lang.NullPointerException 계속 발생하네요...

    Date2009.06.23 By거만쟁이 Views30
    Read More
  4. 재귀적 조인에 대한 쿼리를 저장할 수 있나요?

    Date2009.06.23 Bysizers Views19663
    Read More
  5. ADD_MONTHS 함수의 사용

    Date2009.06.25 By체리필터 Views16172
    Read More
  6. CUBRID-8.1.4.1032-linux 완전삭제 방법

    Date2009.06.25 Byrupee76 Views9
    Read More
  7. 안녕하세요? loaddb 에 대해 질문이 있습니다.

    Date2009.06.25 By서기97 Views13
    Read More
  8. 웹서버(Win)와 DB서버를 분리할 때 odbc설치 방법

    Date2009.06.26 By안지민 Views17827
    Read More
  9. select @@identity

    Date2009.06.27 By펭귄 Views19896
    Read More
  10. 복제 문의해요

    Date2009.06.28 By삽질쟁이 Views11438
    Read More
  11. cubrid.jdbc.dirver.CUBRIDDriver 에러

    Date2009.06.30 By논픽션Lover Views13464
    Read More
  12. 큐브리드와 php 연동을 할려는데 문제가??

    Date2009.07.01 By흑심품은연필 Views11935
    Read More
  13. 데이터 보안기능 문의

    Date2009.07.01 Byhareton Views8
    Read More
  14. 초보질문 - insert할때 질문

    Date2009.07.02 Byrusell Views10487
    Read More
  15. DataBase 검사 오류

    Date2009.07.02 ByNonStop Views11445
    Read More
  16. The column name is invalid. 에러메시지 좀...

    Date2009.07.02 By논픽션Lover Views20963
    Read More
  17. procedure 문의드립니다

    Date2009.07.03 By삽질쟁이 Views13617
    Read More
  18. [긴급] Java VM can not be started 메세지 원인??

    Date2009.07.07 By이석희 Views19551
    Read More
  19. 특정 테이블 최적화 시 에러 발생

    Date2009.07.11 By인경수 Views10761
    Read More
  20. 혹시 PHP5.3.0 버전에서 모듈 설치되신분 계신가요???

    Date2009.07.13 Bysenseplus Views9394
    Read More
  21. [오류]서버 접속을 못하겠습니다.ㅜ.ㅜ (그림 유)

    Date2009.07.14 By후니 Views9537
    Read More
  22. 회사 서버에 접속을 할려면 설정이 다른가요?

    Date2009.07.14 By후니 Views10577
    Read More
Board Pagination Prev 1 ... 8 9 10 11 12 13 14 15 16 17 ... 200 Next
/ 200

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales