I am looking for a button that inside a php table.
I tried
echo "<td bgcolor='#FFFFFF'><center>" . '<input type="button" name="Activate" value="Activate" class="form" onClick="activate_user_id('.$rows['username'].','.$rows['loginid'].','.$rows['activated'].')">' . "</center></td>";
I know people said i have to use AJAX to make it work. but i dont know AJAX at all, Can anyone show me how to use AJAX that to make this button works with calling a function in the same page and refresh the page after updated the sql