Change all values at a time but not successfull :(

[php]public function get_on_checkbox1($i,$tbl,$tbl_id,$checkbox,$block){
$button_id="";
for($i=0;$i<=$count;$i++)
if(isset($_POST[$checkbox][$i])){
$button_id = $_POST[$checkbox][$i];
$q=$this->query(“UPDATE $tbl set $block ='1’where $tbl_id = $button_id”);
$register->error_message[]=“Please Refresh the Page to see change”;
}
} [/php]

i made this code to change the values of the checkbox those are checked this code is work but changing the value of one field at a time but i want to to change the values of all fields those are checked any help pleasea

Sponsor our Newsletter | Privacy Policy | Terms of Service