$(function() { $.getJSON('http://site.ru/mysql_test/mysql2.php', { callback: 'some' }, function(data) { alert(data); }); });