Hi all,

I have more than 50 pages in a site. suppose, in every page i want to write "ABC" and edit every some days. Please anybody tell me the code how i can call ajax file in php. And complete code for both files.

almostbob commented: do your own homework +12

Recommended Answers

All 3 Replies

Member Avatar for iamthwee

Cheap trick to advertise your website or a genuine question?

Hi all,

I have more than 50 pages in a site. suppose, in every page i want to write "ABC" and edit every some days. Please anybody tell me the code how i can call ajax file in php. And complete code for both files.

First off, you're not making the Ajax call in PHP but rather the other way around. You would use Ajax to ask the PHP script for some output (in this case, anyways).

There are a whole slew of ways of doing this. But for simplicity I would encourage you to pick up a JS framework such as jQuery (specifically it's Ajax functionality). Your PHP script would then return the "ABC" (or whatever it needs to be).

home work assignment: Flush; gurgle

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.