Wrote function for digging
<form method="POST"> <input type="submit" name="nazvanie_knopkii" value="Поднять все мои записи" /> </form> This pkhp button, how to hide it for an hour after the click?
<?php # Если кнопка нажата if( isset( $_POST['nazvanie_knopkii'] ) ) { echo my_dsfg(); # Пример: echo 'Все ваши данные обновлены и занимают первые позиции!'; } ?> <form method="POST"> <input type="submit" name="nazvanie_knopkii" value="Поднять все мои записи" /> </form> function my_dsfg() { $currents_users = wp_get_current_user(); global $wpdb; $get_max_id = $wpdb->get_var("SELECT max(id) FROM wp_participants_database "); $wpdb->query(" UPDATE wp_participants_database SET id = id + '$get_max_id' WHERE id_private = '$currents_users->id' "); } Reading the code, you can understand that the “function” raises the record to the 1st position (I hope, you don’t need to know why) to get rid of users who will keep their records in the first place with an auto click, I want to hide this button, what to do UPDATE, for example, for an hour or two
postmandirectly? - Sergeyhttps://stackoverflow.com/questions/21175753/how-to-embed-if-statement-inside-echo- Sergey