odbc_* <-> MyODBC <-> MySQL
| From: | Cynic | Date: | Fri, 12 Jan 2001 20:42:51 +0000 |
| Subject: | odbc_* <-> MyODBC <-> MySQL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34293@lists.php.net to get a copy of this message | ||
Just curious. I tried accessing MySQL through ODBC using
a system DSN (MyODBC driver ver. myodbc-2.50.36-nt.zip)
and a script as simple as this one crashes Apache at the
odbc_fetch_row() call. I actually don't know much about
ODBC related stuff inside PHP... or generally, for that
matter, so I don't know whether this is unsupported, or
whether a more stable state is possible / desirable.
$conn = odbc_connect( $dsn , $usr , $pwd );
$res = odbc_tables( $conn ) ;
while( $r = odbc_fetch_row( $res ) ) {
for( $i = 0 ; $i < count( $r ) ; $i++ ) {
echo $r[ $i ] , '|' ;
}
echo "\n" ;
}
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz