Tema: Re: php-pdo_odbc
Autorius: mix
Data: 2011-09-30 14:10:54
freebsd - 5.3.8
     php5-pdo-5.3.8
     php5-pdo_odbc-5.3.8


ubuntu - 5.3.2-1ubuntu4.9



PDO support    enabled
PDO drivers     mysql, odbc 

PDO_ODBC
PDO Driver for ODBC (unixODBC)    enabled
ODBC Connection Pooling     Enabled, strict matching 


"mix"  wrote in message news:j64741$bs5$1@trimpas.omnitel.net... 



$query = "select * from prekes";
$dbh= new PDO('odbc:SERVERIS', 'USERIS', 'PASSWORDAS');
$stmt = $dbh->prepare("$query");
$stmt->execute();
while ($row = $stmt->fetch()) {
    print_r($row);
}
unset($dbh); unset($stmt);