http://netschool.ayinfo.ha.cn/phpxssl12.htm

解决方案 »

  1.   

    http://rcli.51.net/newsv1.2/news_view.php?news_id=364&news_name=PHP+Oracle(OCI)初步&news_kind=P06
      

  2.   

    <?php
    $conn = OCILogon("scott","tiger");
    $stmt = OCIParse($conn,"select empno, ename from emp");
    OCIDefineByName($stmt,"EMPNO",&$empno);
    OCIDefineByName($stmt,"ENAME",&$ename);
    OCIExecute($stmt);
    while (OCIFetch($stmt)) {
      echo "empno:".$empno."\n";
      echo "ename:".$ename."\n";
    }
    OCIFreeStatement($stmt);
    OCILogoff($conn);
    ?>