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 Quote 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... Quote 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); ?>);" Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.