topical media & game development

talk show tell print

server-php-sqlite-demo-util.php / php



  <?php
  
  db = new SQLiteDatabase("server-php-sqlite-demo.db");
  res = db->unbufferedQuery("SELECT * FROM foo LIMIT 1");
  // fetch the number of fields
  n_fields = res->numFields();
  i = 0;
  while (i < n_fields) {
      // retrieve individual fields
      field_name = res->fieldName(i++);
      echo field_name."\n";
  }
  
  ?> 
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.