virt2/api/code/ajax/lk.php

8 lines
329 B
PHP
Executable File

<?php
switch( @$_POST['act'] ) {
case 'save_profile':/*сохранение категории*/
$db->free_sql('UPDATE `users` SET `fio` = "' . $_POST['fio'] . '", `tel` = "' . $_POST['tel'] . '", `adres` = "' . $_POST['adres'] . '", `org` = "' . $_POST['org'] . '" WHERE `id` = ' . $_SESSION['user_id']);
break;
}
?>