note 51725 deleted from ref.mssql by danbrown

From: Date: Mon, 18 May 2009 02:12:08 +0000
Subject: note 51725 deleted from ref.mssql by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155632@lists.php.net to get a copy of this message
Note Submitter: diegobandeira at ibest dot com dot br ---- Hello! This code appears work fine and fast to me, like mysql or msaccess. The server is working for an Intranet home page. <?php $db = new COM("ADODB.Connection"); $dsn = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=tsos;Data Source=(local);Application Name=SellCar"; $db->Open($dsn); $rs = $db->Execute("SELECT * FROM states order by name asc"); while (!$rs->EOF) { echo $rs->Fields['name']->Value."<BR>"; $rs->MoveNext(); } ?> Diego Bandeira.

« previous php.notes (#155632) next »