PDA

View Full Version : [ubuntu] MySQL Query output size



unavenged
March 30th, 2010, 10:36 AM
Hi,

If we do a query on our sever through PHPmyadmin we get 1300 records but through our PHP code we only get 1172... What could cause this and how could we get it to work right?

Thanks

Ryan Dwyer
March 30th, 2010, 11:46 AM
It'll be something silly. For example, if you're using variables in your query the value might not be what you think it is. Or maybe the PHP code is filtering results after the query. Or maybe PHP isn't connecting to the server/database you think it is. Or maybe the code you're viewing isn't the same file you're accessing through Apache.

I know these sound stupid but they're worth checking.