PDA

View Full Version : multiple record update


desertdirk
01-25-2006, 01:36 AM
How can you display multiple records from a database table and update any of the records?
dd

davidj
01-25-2006, 08:08 AM
you just need a repeat region around the <tr> that holds your $row array

<?php do {

<tr>
<td></td>
<td></td>
</tr>

<?php } while ($row_recordset = mysql_fetch_assoc($recordset)); ?>

you can do this from the server behaviors panel > Repeat Region

and update any of the records

you need an update statement which i am sure CI will have a tut for it

Creative Insanity
01-25-2006, 08:48 AM
tut? what are they dj.. I don't do tuts LOL

desertdirk
01-25-2006, 03:36 PM
thanks
haven't tried it out yet. Knew about using repeat region but didn't know if it could be applied to an update.

dd