I do not really understand all this php, help, I need to make sure that the data from the table is edited and saved. Here is what I did:

<form method="POST" action="../../../shorec.php" > <input name="FIO" value="<?php echo $_SESSION['FIO']; ?>" type="text"> <input name="login" value="<?php echo $_SESSION['login']; ?>" type="text"> <input name="pas" value="<?php echo $_SESSION['pass']; ?>" type="text"> <input type="submit" name="obnovite" value="Сохранить"> </form> 
  • Where is the table? Where is shorec.php ? - Byulent
  • <? php function shorec () {$ db = DataBase :: getDB (); $ login = $ _ POST ['login']; // Data from login $ pas = $ _ POST ['pas']; // Data from password $ FIO = $ _ POST ['FIO']; $ id = $ _ POST ['Id_uch_zap']; $ del = $ db-> mysql_query ("UPDATE student SET FIO = '{$ FIO}' WHERE Id_uch_zap = '{$ id}'"); }?> - Alexander
  • please add to the question. - Byulent
  • And what specifically does not work? - Byulent
  • When I change the data I click on the save button, it just sends me to the shorec.php page - Alexander

0