绑定的需要是一个变量,而不是一个常量。
ora_bind($cursor,"ss",":x1",10); to$a = "ss";
ora_bind($cursor,$a,":x1",10);

解决方案 »

  1.   

    $a   =   "ss"; 
    ora_bind($cursor,$a,":x1",10);结果还是一样的,无法通过!而且php函数手册里的范例是这样的:<?php
    ora_parse($curs, "declare tmp INTEGER; begin tmp := :in; :out := tmp; :x := 7.77; end;");
    ora_bind($curs, "result", ":x", $len, 2);
    ora_bind($curs, "input", ":in", 5, 1);
    ora_bind($curs, "output", ":out", 5, 2);
    $input = 765;
    ora_exec($curs);
    echo "Result: $result<br />Out: $output<br />In: $input";
    ?> 
      

  2.   

    小弟用了很多时间, 学会了php, 搞了www.kingofcoder.com 编程王网站, 请大家支持一下.
    这站已经用了我很多钱买伺服器了, 希望能够搞一个出名的编程资源网
    谢谢