분류 php

sqlite_query() 함수

컨텐츠 정보

  • 조회 440 (작성일 )

본문

코드 : 

$dbconn = sqlite_open('phpdb');

    if ($dbconn) {
            script!
            sqlite_query($dbconn, "INSERT INTO animal VALUES('a', 14)");
            sqlite_query($dbconn, "INSERT INTO animal VALUES('b', 16)");
            sqlite_query($dbconn, "INSERT INTO animal VALUES('c', 13)");
            var_dump(sqlite_array_query($dbconn, "SELECT * FROM animal", SQLITE_ASSOC));
    } else {
            print "Connection to database failed!\n";
    }



php