jQuery.ajax({
url: './index.php',
data: ,
type: 'post',
dataType: 'json',
success: function (response)
{
if (response.result) {
jQuery('#btn').value(response.text);
}
}
});
$mysqli->query("INSERT INTO `table` (`id`, `artist`, `title`) VALUES (".(int)$id.", '".$mysqli->real_escape_string($artist)."', '".$mysqli->real_escape_string($title)."')");