Forum Moderators: open

Message Too Old, No Replies

Update content (php mysql ajax)

php mysql ajax

         

gonny

5:30 pm on Apr 2, 2009 (gmt 0)

10+ Year Member



Hi all!
I'm looking for an example where ajax call a php function to add something (friend). And after run change content.
Example:

Add Friend (url=friend.php?action=add&id=12)

After run this to change in

Remove Friend (url=friend.php?action=remove&id=12)

Using div and id.

Anyone can give me any example of this?

DrDoc

7:44 am on May 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apologies for late reply.

I am sure there is a reason why you want to use AJAX for this, even though there is technically no need.

What have you got so far? Do you have the AJAX function already, or ...?

gonny

5:18 pm on May 7, 2009 (gmt 0)

10+ Year Member



Nothing :(. No I dont have a function but I can use $_GET['']

DrDoc

7:27 am on May 13, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perhaps you should settle for a simple form and regular page update then?

I know that is probably not what you want to hear ... but it is a clean and simple solution, and would certainly cause less of a headache for you.