It should be like this,remove the for loop $values=array('reas'=>$reason,'actu'=>$act,'ids'=>$apid); $update_row =mysql_query("UPDATE ActivityProduct SET Actual= '".$values['actu']."',Reason='".$values['reas']."' WHERE APID='".$values['ids']."'");
↧
Answer by user3040610 for updating table columns with arrays, php
↧