Oracle
 sql >> Datenbank >  >> RDS >> Oracle

PHP Oracle oci_num_rows Ergebnis 0

Verwenden Sie dies:

$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";