php - Using YUI3 how do I update a record in Mysql? -
php - Using YUI3 how do I update a record in Mysql? -
i have built drag , drop interface reads list mysql db. how can save "sort order" id? have php function saving notice yui , need javascript function phone call php function update record.
this copied build drag , drop. http://developer.yahoo.com/yui/3/examples/dd/list-drag.html
any help appreciated.
in order update record, need making ajax xmlhtpprequest can create http post request , have info passed server side language. in end, server side language update record adding info existing record..it in form:
yui().use("io-base", function(y) { var cfg, request, uri; uri = "sspage.php" //the php page in pass info cfg = { method: 'post', //you want post transaction data: 'user=yahoo', //your info arguments: { 'foo' : 'bar' } }; request = y.io(uri, cfg); })
i not familiar yui3, , can read documentation of yui3:io yahoo since help lot. hope helps.
php mysql javascript-events yui
Comments
Post a Comment