Re: abstraction for databases

From: Date: Mon, 13 Nov 2000 17:12:34 +0000
Subject: Re: abstraction for databases
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-24982@lists.php.net to get a copy of this message
Where can I find documentation for this abstraction layer? > There is a database abstraction layer in PHP. Here is a sample script: > > require_once 'DB'; > $db = DB::connect('odbc://rasmus:pw@host/my_db'); > $stmt = $db->prepare('select * from my_table'); > $result = $db->execute($stmt); > while($row = $db->fetchrow($result)) { > while(list($key, $value) = each($row)) { > echo "$field: $value<br>\n"; > } > } > $db->disconnect(); >

« previous php.general (#24982) next »