You need some dynamic code to check all checkboxes. First you create a form with checkboxes with the name containing the databaseID, say "id_354". The parser checks all posted variables from your from and finds the used ID with a regular expression. If the checbox is set, then do some database update for that specific ID. In pseudocode:
The form to show all records with a checkbox:
while( $dbresult ) {
echo "<input type=checkbox name=id_".$id." value=Y>";
}
The parser:
<?php
foreach( $HTTP_POST_VARS as $key=>$val )
{
// Do they match our variable prefix?
if( ereg( "id_([0-9]+)", $key, $regs ) )
{
$posted_id = $regs[1];
$posted_checkbox_value = $val;
if( $posted_checkbox_value == "Y" ) {
$sql = "UPDATE table SET active='Y' WHERE id='$posted_id'";
$result = mysql_query( $sql, $conn );
}
}
?>