[phorm] [Phorm:] Re: Listing with PHORM_DBFNREC

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 14 May 2003 23:57:02 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#2699) Re: Listing with PHORM_DBFNREC 
            <http://www.phorm.com/support/?rev=2699> 
  AUTHOR:   Patrick O'Hara 
  DATE:     May 14, 2003 at 7:57 p.m. EST 

  Reply To: (#2697) Re: Listing with PHORM_DBFNREC 
  Author:   Rich 
  Date:     May 14, 2003 at 7:49 p.m. EST 

Not a good day for blunders... instead of this: 

for ($i = 0; $i < $PHORM_DBFNREC; $i++) { 
-- $fieldName = "F" . $i + 1; 
-- echo "< input name=\"$fieldName\">"; 
} 

Try this: 

for ($i = 0; $i < $PHORM_DBFNREC; $i++) { 
-- $fieldName = "F" . ($i + 1); 
-- echo "< input name=\"$fieldName\">"; 
} 

Without the ( ) it is adding 0 to the end of the F and then attempting to add 
one, which results in the numeric 1, what we want to do is add 1 to zero and 
then tack the result on the end of the F. 

Sorry bout that - Patrick 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: