switch ($_POST['action']) { case 'add': #Function for add row $mysqli->add_row($connection, $table, $user); break; case 'delete': #Function for delete row $mysqli->del_row($connection, $table, $user, $_GET['id']); break; case 'edit': #Function for edit form print_update_page($connection, $table, $user, $_GET['id']); exit; case 'update': #Function for update row $mysqli->update_row($connection, $table, $user); break; default: break; } #Function for print table $check->check_no_empty(print_costs($connection, $user, $from, $step, $url)); ?> <div class="page_list"> <?php #Вывод списка страниц print_pages_list($connection, $table, $user, $step, $url); ?>