Welcome to WebmasterWorld Guest from 54.147.158.215

Forum Moderators: open

Message Too Old, No Replies

Update content (php mysql ajax)

php mysql ajax

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

Junior Member

10+ Year Member

joined:Mar 1, 2005
posts: 57
votes: 0


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?

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

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


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 ...?

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

Junior Member

10+ Year Member

joined:Mar 1, 2005
posts: 57
votes: 0


Nothing :(. No I dont have a function but I can use $_GET['']
7:27 am on May 13, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members