If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > SELECT FOUND_ROWS() not Working

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-09, 08:24
sakis sakis is offline
Registered User
 
Join Date: Nov 2009
Posts: 19
SELECT FOUND_ROWS() not Working

Hi

I am running a query
which uses the
SELECT SQL_CALC_FOUND_ROWS .... LIMIT 0,10

then this query is being executed
SELECT FOUND_ROWS()

but it returns 1 while the rows that should count are much more.

Mysql version is 5.1.33-community
and some of the tables are using indexes

Any idea about why could this happen?

Last edited by sakis; 12-04-09 at 14:04.
Reply With Quote
  #2 (permalink)  
Old 12-04-09, 14:17
sakis sakis is offline
Registered User
 
Join Date: Nov 2009
Posts: 19
SOLVED

I Was executing a mysql_error() query between the
Select Found....
and FOUND_ROWS

after deleting that query it works fine !
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On