<script>
jQuery(document).ready(function($) {
$('#btn').click(function() {
var textValue = $('#textField').val();
//$.post('test.php',{text: textValue});
$.ajax({
url: 'https://www.localhost.com/wp-admin/admin-ajax.php?action=ihf_contact_form_request',
method: 'POST',
data: {contactName: "qwer", email: "test3@gmail.com" }
});
});
});
</script>
SELECT *
from (SELECT
servers.id,
servers.game,
servers.votes,
@n := @n + 1 AS rank
FROM servers , WHERE game like 'minecraft' (SELECT @n := 0) r
ORDER BY servers.votes DESC
) abs where id = 3
WHERE game like 'minecraft'
вот что есть у меня