Re: [PHP] PHP + MySQL, how to get total rows matched when using LIMIT 0, 10?

2002-11-05 Thread 1LT John W. Holmes
> I'm trying to get the total matched rows when I'm using "LIMIT 0, 10", > but I only get the number 10, when the total should be around 100. So, > can I get total matched rows without doing a separate query using > count()? > > Here is an example of my current query: > > $result = mysql_query("SEL

RE: PHP + MySQL, how to get total rows matched when using LIMIT 0, 10?

2002-11-05 Thread Jeroen Geusebroek
> I'm trying to get the total matched rows when I'm using "LIMIT 0, 10", > but I only get the number 10, when the total should be around 100. So, > can I get total matched rows without doing a separate query using > count()? You first have to get the whole result set without the limit OR make use

Re: PHP + MySQL, how to get total rows matched when using LIMIT 0, 10?

2002-11-05 Thread Joe Stump
ROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 4:54 PM Subject: PHP + MySQL, how to get total rows matched when using LIMIT 0, 10? > I'm trying to get the total matched rows when I'm using "LIMIT 0, 10", > but I only get

PHP + MySQL, how to get total rows matched when using LIMIT 0, 10?

2002-11-05 Thread SED
I'm trying to get the total matched rows when I'm using "LIMIT 0, 10", but I only get the number 10, when the total should be around 100. So, can I get total matched rows without doing a separate query using count()? Here is an example of my current query: $result = mysql_query("SELECT * FROM pro