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 http get and post?

1058


Which function would you use to insert a record into a database in php?

1100


What is 'float' property in css?

1047


What are the functions to be used to get the image's properties (size, width and height)?

1039


How does session work in php?

1070


How to remove html tags from data in php?

1074


What is php simple definition?

1029


What are the delimiters in php?

1014


What is a variable cost example?

1099


How does the identity operator ===compare two values in PHP?

1164


Is php free to use?

1054


What's php?

1119


Php being an open source is there any support available to it?

1165


How to check an key is exists in array?

1162


Explain me soundex() and metaphone()?

1041