Orionsbelter Posted March 19, 2010 Share Posted March 19, 2010 How can i click a link for the programme to update database without leaving the page. For example: I have a button or link lets say it says "Update Number"; Then i wish it to UPDATE a field in my MYSQL database lets say its called "Number" with the new value of "3" And all this happens without leaving the page nor opening a new page. Thank you for reading Link to comment https://forums.phpfreaks.com/topic/195828-how-can-i-click-a-link-for-the-programme-to-update-database-without-leaving-the/ Share on other sites More sharing options...
KevinM1 Posted March 19, 2010 Share Posted March 19, 2010 You need to use AJAX for that. Link to comment https://forums.phpfreaks.com/topic/195828-how-can-i-click-a-link-for-the-programme-to-update-database-without-leaving-the/#findComment-1028690 Share on other sites More sharing options...
Orionsbelter Posted March 20, 2010 Author Share Posted March 20, 2010 Thank you for your reply, Could you show me and example of this or where i can find more information? Link to comment https://forums.phpfreaks.com/topic/195828-how-can-i-click-a-link-for-the-programme-to-update-database-without-leaving-the/#findComment-1029046 Share on other sites More sharing options...
PravinS Posted March 20, 2010 Share Posted March 20, 2010 Check this out http://www.w3schools.com/Ajax/ajax_example.asp Link to comment https://forums.phpfreaks.com/topic/195828-how-can-i-click-a-link-for-the-programme-to-update-database-without-leaving-the/#findComment-1029047 Share on other sites More sharing options...
Orionsbelter Posted March 20, 2010 Author Share Posted March 20, 2010 Thank you for this i have been learning this all day. Now i have a sense i realise how javascript uses the AJAX method to get data for the database Link to comment https://forums.phpfreaks.com/topic/195828-how-can-i-click-a-link-for-the-programme-to-update-database-without-leaving-the/#findComment-1029226 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.