Tema: Re: q: php-pdo_odbc
Autorius: mix
Data: 2011-09-30 13:53:53

$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);