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 importance of "action" attribute in a html form?

1052


What is $$ in php?

1021


Does php need html?

1042


Why do we use cookie?

1018


Tell me how do I check if a given variable is empty?

1014


Why should I learn php?

1123


What is difference between variable declaration and variable definition?

1025


How could I install codeignitor ?

2277


Does php pass arrays by reference?

1173


What is php addslashes?

1164


Explain how can we execute a php script using command line?

1086


What is the timeout period on session values?

1129


What is difference between rest and http?

1063


What is the difference between require_once and require in php?

1149


Is php secure?

1023