Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ForEach() vs. While() Issue in Reports?
12-11-2018, 01:46 AM (This post was last modified: 12-11-2018 01:47 AM by VortecCPI.)
Post: #1
ForEach() vs. While() Issue in Reports?
SalesReport.php
PurchasesReport.php

This does not work in my case:

PHP Code:
foreach($Result as $MyRow) { 

But this does:

PHP Code:
while ($MyRow DB_fetch_array($Result)) { 

Any ideas or thoughts?

https://www.linkedin.com/in/eclipsepaulbecker
Visit this user's website Find all posts by this user
Quote this message in a reply
12-11-2018, 02:00 AM
Post: #2
RE: ForEach() vs. While() Issue in Reports?
The standard for weberp is to use while () loops for iterating through datasets.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)