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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -