On Thu, May 29, 2008 at 2:31 AM, behrooz_program
wrote:
> I have a query and I'm going to update an input box via PHP . the
> query doesn't work !!!
> inform me please how to solve it
>
> //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);
> }
> }
>
--------------------------------
hai
check the query syntax (string concatenation)
$sql2="UPDATE $tb_1 SET id_call='".$id_call[$i]."' WHERE id ='".$id[$i]."'";
regards
Muthu
bangalore