envexlabs Posted May 17, 2007 Share Posted May 17, 2007 Hey, I have a shopping list, or multiple shopping lists, that users and sort and add/delete items from. I know how to add/move/delete items, but that is with a submit button. Is there a way, probably through AJAX, that the mySQL tables will be updated automatically as things are changed? Thanks, envex Link to comment https://forums.phpfreaks.com/topic/51832-auto-update-shopping-lists-php-mysql/ Share on other sites More sharing options...
taith Posted May 17, 2007 Share Posted May 17, 2007 ajax can update stuff by onchange="javascript:function();" yes... Link to comment https://forums.phpfreaks.com/topic/51832-auto-update-shopping-lists-php-mysql/#findComment-255406 Share on other sites More sharing options...
envexlabs Posted May 17, 2007 Author Share Posted May 17, 2007 i'm brand new to AJAX, so would it be something like: onchange="javascript:function(<?php $query = mysql_query('UPDATE blah blah blah); ?>);" Link to comment https://forums.phpfreaks.com/topic/51832-auto-update-shopping-lists-php-mysql/#findComment-255411 Share on other sites More sharing options...
taith Posted May 17, 2007 Share Posted May 17, 2007 nonono... php is server sided... ajax is client sided... http://www.phpfreaks.com/forums/index.php/topic,115581.0.html that should help ya out Link to comment https://forums.phpfreaks.com/topic/51832-auto-update-shopping-lists-php-mysql/#findComment-255427 Share on other sites More sharing options...
envexlabs Posted May 17, 2007 Author Share Posted May 17, 2007 i shall read! Thanks alot. Link to comment https://forums.phpfreaks.com/topic/51832-auto-update-shopping-lists-php-mysql/#findComment-255432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.