jquery - QUERY versus PHP -
i trying understand medium use fetch data mysql database using php.
what better "speed" wise, jquery or php fetch data form mysql on page load?
with jquery alone can't fetch data mysql.
if question load page or data php after loading, can say, loading page better, because text standing on page when load , jquery have delay display data.
$.ajax({url: 'ajax.php', success: function(data){$('#name').text(data.name)}});
Comments
Post a Comment