Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

oci num rows function syntax tag tutorial 2013





Alert! Connect with 10,000 Chating Online. Join Now

Php oci num rows () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 5)

oci_num_rows -- Returns number of rows affected during statement execution

Syntax

int oci_num_rows ( resource stmt )

oci_num_rows() returns number of rows affected during statement execution.

Note: This function does not return number of rows selected! For SELECT statements this function will return the number of rows, that were fetched to the buffer with oci_fetch*() functions.

Example 1. oci_num_rows() example

<?php
    
echo "<pre>";
    
$conn = oci_connect("scott", "tiger");
     
    
$stmt = oci_parse($conn, "create table emp2 as select * from emp");
    
oci_execute($stmt);
    echo
oci_num_rows($stmt) . " rows inserted.<br />";
    
oci_free_statement($stmt);
    
    
$stmt = oci_parse($conn, "delete from emp2");
    
oci_execute($stmt, OCI_DEFAULT);
    echo
oci_num_rows($stmt) . " rows deleted.<br />";
    
oci_commit($conn);
    
oci_free_statement($stmt);
    
    
$stmt = oci_parse($conn, "drop table emp2");
    
oci_execute($stmt);
    
oci_free_statement($stmt);
    
    
oci_close($conn);
    echo
"</pre>";
?>

oci_num_rows() returns FALSE on error.

Note: In PHP versions before 5.0.0 you must use ocirowcount() instead. This name still can be used, it was left as alias of oci_num_rows() for downwards compatability. This, however, is deprecated and not recommended.

Php oci num rows Function syntax tag

oci num rows php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php oci num rows syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online