Tema: Re: php-pdo_odbc
Autorius: mix
Data: 2011-09-30 14:28:53
luzta butent ant sito     $stmt->execute();
kol nequerina - ant freetds dumpo matosi, kad connection vyksta.



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