How do i pass a variable from Jquery to PHP?
var itemId = $(this).attr('name');
$.ajax({
url: "loaditems.php",
method: "GET",
success: function(result){
alert(result);
}});
I want to add a number in PHP at the end of my SQL request.
$sql = "SELECT * FROM SmiteItems WHERE ID = ";
I know there are many questions like this, but other questions are made by people who have more complicated structures which i don't understand.