Snippets v2

Languages
My Snippets

Select SQL with ADODB Login or Register to Bookmark this snippet

Description PHP

This code example is used for Select statements with an ADODB conneciton.

Requires the ADODB Library.

The Code Download
  1. <?php
  2. $sql = "SELECT * FROM table";
  3. $result = $db->Execute($sql);
  4. $recordcount = $result->RecordCount();
  5. while (!$result->EOF){
  6.     $var = $result->fields['field'];
  7.     $result->MoveNext();
  8. }
  9. ?>
Credits Contact JC

Added by JC on 12th November, 2007

Comments

There are no comments about this snippet.

Post Comment HTML is allowed

You must be registered and logged in to post a comment.

Login here to post a comment