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

Popular posts from this blog

c - CUDA code not processing if block properly -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -