$q="update student set name='".$_POST[a]."',batch='".$_POST[b]."' where studentid='".$_POST[studentid]."'"; $r=mysql_query($q);
Comment