Communication by JSFIDDLE with PHP code and database on server
<p>I want communication by <strong><a href="http://jsfiddle.net" rel="nofollow">JSFIDDLE</a></strong> (jQuery AJAX call => url:...) with PHP code in my server but have following error.<p></p>

<blockquote>
  <p>An error has occured:<br> [object Object]<br> error<br></p>
</blockquote>

<p><strong>Demo:</strong> <a href="http://jsfiddle.net/mmJNq/" rel="nofollow">http://jsfiddle.net/mmJNq/</a></p>

<p>what do i do?</p>

<pre><code>$('.eghamat').live('keyup', function () {
    var $this = $(this),
        $div = $this.closest('div.bg_units'),
        bu_num = '.' + $div.attr('class').split(" ")[1];
    var dataObj = $(this).closest('form').serialize();
    //alert(dataObj);
        $.ajax({
            type: "POST",
            dataType: 'json',
            url: 'http://binboy.gigfa.com/admin/tour_foreign/auto_complete',
            //url: 'auto_complete',
            data: dataObj,
            cache: false,
            success: function (data) {
                //alert(bu_num);
                var id_name = $(bu_num + ' .list_autobox_hotel').attr('id');
                $(bu_num + ' .list_autobox_hotel').show().html('');
                if (data == 0) {
                    $(bu_num + ' .list_autobox_hotel').show().html('&lt;p&gt;&lt;b&gt;there is no&lt;/b&gt;&lt;/p&gt;');
                } else {
                    $.each(data, function (index, value) {
                        $('&lt;p id="' + value.name + '"&gt;' + value.name + '&lt;/p&gt;').appendTo('.list_autobox_hotel');
                    });
                }
            },
            "error": function (x, y, z) {
                // callback to run if an error occurs
                alert("An error has occured:\n" + x + "\n" + y + "\n" + z);
            }
        });
});
</code></pre>
