Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,008 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,343 people online right now. Registration is fast and FREE... Join Now!




function for finding the total number of rows in php

 
Reply to this topicStart new topic

function for finding the total number of rows in php

samn84
12 Mar, 2008 - 03:24 AM
Post #1

New D.I.C Head
*

Joined: 21 Feb, 2008
Posts: 41

i making a program in php which uses an oracle query.......i wna kno if there is any function in php that cud get the total no of rows returned from the resultset.because i dont find any way if a query returns null!!!


User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Function For Finding The Total Number Of Rows In Php
12 Mar, 2008 - 01:46 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,184



Thanked: 210 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
You can use oci_num_rows() which returns the number of rows in a result for ORACLE. You can also use ocirowcount() in versions prior to php 5. The link below will show you the function and how it works...

Oracle Function for Number of Rows - oci_num_rows()

Enjoy! smile.gif
User is online!Profile CardPM
+Quote Post

samn84
RE: Function For Finding The Total Number Of Rows In Php
12 Mar, 2008 - 10:42 PM
Post #3

New D.I.C Head
*

Joined: 21 Feb, 2008
Posts: 41

i already kno these but they dont work for the select statements,rather only tell the no of rows effected by insert,update or delete.

fanx newaiz
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 01:08PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month