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 difference between html and php?

927


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

1138


How do you explain independent and dependent variables?

903


What are the differences between GET and POST methods in form submitting?

1047


Does empty check for null?

962


How to set cookies in PHP?

1089


Can the value of a constant change during the script's execution?

980


Code to open file download dialog in PHP?

1091


Write a hello world program using variable?

946


How is it possible to set an infinite execution time for php script?

965


How do you check if an arraylist is empty?

979


Is php easier than node?

935


Is php pass by reference or value?

1108


Explain $_FILES Superglobal Array?

1039


What is csrf validation?

1096