|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-13 08:26 UTC] thies@php.net
[2002-05-15 00:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
<?php $DSN="oci8://scott:gods"; require_once("DB.php"); $myDB = new DB; $myOBJ = $myDB -> connect($DSN); if ($myDB -> isError($myOBJ)) { echo $myOBJ; return NULL; } $resultOBJ = $myOBJ -> query("select * from addr_id"); if ($myDB -> isError($resultOBJ)) { echo $resultOBJ; return NULL; } else { while( $row = $resultOBJ->fetchRow() ) { echo "$row[0] $row[1] $row[2] $row[3] $row[4] $row[5] $row[6] $row[7]\n" ; } } ?> The result: 0 1234 2313 1233 RD. 68?? R.O.C. TAIWAN Warning: OCIFetchInto: ORA-01002: ?^???????Ǥ??? in DB/oci8.php on line 206 Warning: OCIFetchInto: ORA-01002: ?^???????Ǥ??? in DB/oci8.php on line 206 Warning: OCIFetchInto: ORA-01002: ?^???????Ǥ??? in DB/oci8.php on line 206