[Solved] QUERY versus PHP [closed]


With jQuery alone you can’t fetch data from mysql.
If your question is to load with the page or get the data from php after loading, I can say, that loading with page is better, because the text is standing on the page when you load it and jquery will have a delay to display the data.

$.ajax({url: 'ajax.php', success: function(data){$('#name').text(data.name)}});

solved QUERY versus PHP [closed]