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 / rajan vardawaj

Here is how can you find the number of rows in a result set
in PHP: $result = mysql_query($any_valid_sql,
$database_link); $num_rows = mysql_num_rows($result); echo
“$num_rows rows found”;

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between implode() and explode() in php?

965


What is the best way to change the key without changing the value of a php array element?

924


Explain what are the two main string operators?

907


How many escape sequences are recognized in double-quoted strings?

961


A process is identified by a unique___

1009


How come the code works, but does not for two-dimensional array of mine?

929


What is the difference between array_map () and array_shift ()?

967


What is preg_match?

910


Why php is sometimes called as embedded scripting language?

905


What is the maximum size of a database in mysql?

954


What is php resource type?

915


Does php support function overloading?

918


How long does a php session last for?

981


How to calculate the length of a string?

1034


What is singleton pattern in php?

855