Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_POST['zapolnit'])){
- $id=$_GET['id'];
- if($group!='Выберите группу' && $nation!='Выберите национальность' && $region!='Выберите регион'){
- mysql_query("UPDATE student SET surname='$sname',name='$fname',lastName='$tname',id_group='$group',birthday='$date',id_gender='$gender',id_nation='$nation',id_disability='$disability',id_uchet='$uchet',id_place='$place',id_region='$region',id_famStat='$famStat',id_family='$family',id_placeHow='$how' WHERE username='".$_SESSION['username']."'") or die(mysql_error());
- header("location:renameComplete.php?id=".$id.""); ------тут id берет
- }else{
- $message = "Заполните все поля!";
- header("Refresh:0.5;editProfile.php?id=".$id."");------тут id НЕ берет
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement