JuniorBee
asked on
Using AJAX to update a record onclick of an image
I have an icon image and when i is clucked, I want to execute this function below. Can anyone help with a very simple code example?
Thanks!
Thanks!
function readmessage($mid)
{
mysql_query("UPDATE messages SET status='Read' WHERE messageid='".$mid."'");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It's the case. We're using ajax here...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello @angelIII,
I posted valid answers : ID:28876208 and ID:28876844
I posted valid answers : ID:28876208 and ID:28876844
The user said : Hi I'm sorry, I need to do it without submitting the page (AJAX)
The valid answers (ajax source page doing the call and the one that answer it) : ID:28876208 and ID:28876844
The valid answers (ajax source page doing the call and the one that answer it) : ID:28876208 and ID:28876844
Thank you very much @ModEErf
ASKER