behrooz_program wrote: > //Check if button name "Edit" is active, do this > if($Edit){ > for($i=0;$i<$count;$i++){ > $sql2="UPDATE $tbl_1 SET id_call='$id_call[$i]' WHERE id ='$id[$i]'"; > $result2= mysql_query($sql2); > } > }
When you use arrays like that you should write them like this: $sql2="UPDATE $tbl_1 SET id_call='{$id_call[$i]}' WHERE id ='{$id [$i]}'"; Also, running mysql_error() will let you know what is wrong. Issuing a die($sql2) before running mysql_query() will give you the SQL string as it will be executed which helps debugging..... Good luck