The most difficult thing I find about venturing into PHP (being in RPG for 15 years) is what is the translation.
For example my Assembly file has 3 Jobs and percents (or of course, any assembly could have any number of jobs):
I connect and show in php like this:
As you can see the percent is in an input field and the user can change them (subfile to me).
How do I get the new values back to process them and update the file? I am trying to store the originals in an array, but now what?
Tammy Bond
For example my Assembly file has 3 Jobs and percents (or of course, any assembly could have any number of jobs):
Code:
[FONT=Courier New][SIZE=2]Assembly Job Percent[/SIZE][/FONT] [FONT=Courier New][SIZE=2]A1020 11020 20[/SIZE][/FONT] [FONT=Courier New][SIZE=2]A1020 11030 40[/SIZE][/FONT] [FONT=Courier New][SIZE=2]A1020 11060 40[/SIZE][/FONT]
Code:
while(db2_fetch_row($queryexe)) { if($haverecs=='false'){print ("<b>The $assembly assembly is assigned to the following-must equal 100%:</b>\n"); print("<br></br>");} $haverecs='true'; $jobasy = db2_result($queryexe, 'TMASSY'); $jobnum = db2_result($queryexe, 'TMJOBNO'); $jobper = db2_result($queryexe, 'TMPCT'); $total = $total + $jobper; $n++; $alljobs[$n] = $jobnum; $allpcts[$n] = $jobper; //Put the results in an HTML table. print("<tr bgcolor=#ffffff>\n"); print("Job: "); print("<td>$jobnum</td>\n"); print("<td>   </td>\n"); print("<input type='text' value=$jobper name='jobper' id='jobper' size=3>\n"); print("%"); print("<br></br>"); print("</tr>\n"); }
How do I get the new values back to process them and update the file? I am trying to store the originals in an array, but now what?
Tammy Bond
Comment