[phorm] [Phorm:] Re: Check box question

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 2 May 2003 15:40:41 -0000

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

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

  MESSAGE:  (#2624) Re: Check box question 
            <http://www.phorm.com/support/?rev=2624> 
  AUTHOR:   Rich 
  DATE:     May 2, 2003 at 11:40 a.m. EST 

  Reply To: (#2623) Re: Check box question 
  Author:   Patrick O'Hara 
  Date:     May 2, 2003 at 5:16 a.m. EST 

Patrick, 

Well, I thought I had a handle on it, but now I'm a bit lost. I changed the 
query to: 

$PHORM_MYTABLE = "newproj"; 

$PHORM_DBFETCH = "Piece, EstHrs, Service, Turnaround, DocType, FileType, 
Platform, Pages"; 

$PHORM_DBWHICH = "(File1 = '$F1' OR File1 = '$F2' OR File1 = '$F3' OR File1 = 
'$F4' OR File1 = '$F5' OR File1 = '$F6' OR File1 = '$F7' OR File1 = '$F8') AND 
ProjNum ='$Proj_Num'"; 

....and when I used the debug72 and ran in MySQL, it gave the correct data 
each time. So, I think the issue is putting the right info in the ack page. 
What's confusing me is I am using an array for the records 
*{{PHORM_DBFRSLT[0][Piece]}}*... etc. for all variables. How do I reflect this 
in the for statement? 

$nextSection = 1; 
--for ($i = 0; $i > 8; $i++) { 
---$varName = "F" . $i; 
----if (isset($$varName)) { 
-----$sectionName = "section" . $nextSection++; 
-----$$sectionName = $$varName; 
} 
} 

Also, each "section" that I have is supposed to output 8 pieces of data (per 
section) from the database to the ack page. 

Thanks again... Rich 

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

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: