PHP Oracle oci_num_rows result 0

后端 未结 3 394
别那么骄傲
别那么骄傲 2021-01-23 14:39

I have a question about query in Oracle :

The problem is, the result of oci_num_rows is always 0.

and here is my code so far :

  $qu         


        
3条回答
  •  故里飘歌
    2021-01-23 14:42

    Use this:

    $query = "SELECT IP_ADDRESS, STATUS FROM SEIAPPS_IP_ADDRESS WHERE IP_ADDRESS='$ip'";
    $result = oci_parse($c1, $query);
    oci_execute($result);
    $numrows = oci_fetch_all($result, $res);
    echo $numrows." Rows";
    

提交回复
热议问题