You are here: Re: ms and odbc - only returns half the rows « PHP Programming Language « IT news, forums, messages
Re: ms and odbc - only returns half the rows

Posted by Skeleton Man on 01/03/07 06:06

>------------------------------------------------------
>> while (odbc_fetch_row($result)){
>> $output[] = odbc_fetch_array($result);
>> }
>--------------------------------------------------------
>This is the offending code. Your code fetches the result twice.
>you should write something like:

>while($temp = odbc_fetch_array($result)) $output[] = $temp;

Thanks, must've been a brain fart I think ;-)

Chris

 

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

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