분류 php

sqlite_has_more() 함수

컨텐츠 정보

  • 조회 211 (작성일 )

본문

코드 : 

$sqldb = sqlite_open("mydatabase.db");
    $results = sqlite_query($sqldb, "SELECT * FROM employee");
    while ($row = sqlite_fetch_array($results,SQLITE_BOTH)) {
        echo "Name: $row[1] (Employee ID: ".$row['empid'].")";
        if (sqlite_has_more($results)) echo "Still more rows to go!";
           else echo "No more rows!";
    }
    sqlite_close($sqldb);



php