Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can we find the number of rows in a result set using
PHP?

Answer Posted / shivu

$no_of_rows=mysql_num_rows($result_set_name);
echo $no_of_rows;

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to find no of days between two dates in php?

956


Tell me how to find the length of a string?

1031


How to run a php script?

957


What is csrf token and how it works?

958


What are the different ways to login to a remote server?

951


How to repeat a string to a specific number of times in php?

943


Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

873


What is the difference between htmlentities() and htmlspecialchars()?

960


What is get and post method in php?

961


What is a simple php method to make a cross domain data request?

949


How to declare an array in php?

1032


What are the two most common ways to start and finish a php block of code?

1094


What does the scope of variables means?

973


Where sessions stored in PHP?

940


What is the difference between array_pop() and array_push()?

1140