Thread Rating:
  • 0 Vote(s) - 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.)
#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
Reply
12-11-2018, 02:00 AM,
#2
RE: ForEach() vs. While() Issue in Reports?
The standard for weberp is to use while () loops for iterating through datasets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)