当前位置:Gxlcms > PHP教程 > phpsqlite_num_fields的例子

phpsqlite_num_fields的例子

时间:2021-07-01 10:21:17 帮助过:1人阅读

  1. /**
  2. * sqlite_num_fields函数举例
  3. * edit: bbs.it-home.org
  4. *
  5. */
  6. $sqldb = sqlite_open("mydatabase.db");
  7. $results = sqlite_query($sqldb, "SELECT * FROM employee");
  8. echo "Total fields returned: ".sqlite_num_fields($results)."
    ";
  9. sqlite_close($sqldb);
  10. ?>

人气教程排行