You are here: problem with limit command I think « All PHP « IT news, forums, messages
problem with limit command I think

Posted by Julie on 11/26/05 18:28

I am trying to do this:

$sql = "select * from names limit $startfrom,100";

$result=mysql_query( $sql )

I am trying to break up my query since the table is huge, so I increment
$startfrom until it gets to the end of the query.
But I am trying to test for $result returning false, but even with the limit
way out of range and passed the end, it always returns something
like Resource id #14. How can I test to see if the query is done:

Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация