[FX.php List] Example to share? - edit multiple related records at once (Repost)

Joel Shapiro jsfmp at earthlink.net
Wed Jun 29 14:00:36 MDT 2005


Hi all

I posted about this early in the month and never got a response.  I've 
been working on other things but am back at this issue again.

I've got a project where users will edit multiple related records at 
once:  just one field per related record, entered via radio button.

I learn well by example, and wonder if anyone can share (or point me 
to) an example file that does this.

I've gone through the "8-hrs" materials, looked at php.net, and have 
read some of PHP books, but those only show MySQL with the "update" 
command.  I will be reading/learning more about arrays to better 
understand them, but I would love to be able to look at a solution that 
already does this.


This is what I posted previously showing what I'd put together for my 
first page, but I'm not sure how to set up the second page.

<?php
    foreach($instanceResult['data'] as $key=>$instanceData)
    {
?>
    <tr>
      <td>
<?php  echo $instanceData['field_name'][0];  ?>:<?php  echo
$instanceData['RecordID'][0];  ?><input type="text"
name="field_name[<?php  echo $instanceData['RecordID'][0];  ?>]"
value="<?php echo  $instanceData['field_name'][0]; ?>"></td>
      <td></td>
      <td><?php  echo $instanceData['RecordID'][0];  ?></td>
      <input type="hidden" name="recid[<?php  echo 
$instanceData['RecordID'][0];  ?>]" value="<?php  echo 
$instanceData['RecordID'][0];  ?>">
    </tr>
<?php
    }
?>
</table>
<input type="submit" name="submit" value="submit">


Thanks very much,
-Joel



More information about the FX.php_List mailing list