Can't Save to MySQL via Grid

Hello to all,

I’ve got a problem. I have bee looking topics from yesterday but i couldn’t find my answer, so i decided to open my own topic. Here is my problem; i’ve got a grid on my page. I am calling datas from mysql database. So far so good. But when i double-click to a cell and update it, it is not updating database. I don’t know what i am doing wrong. Please help me…

I’ve added my problem as attached.
save.rar (80.5 KB)

Reorganize grid’s init code as

[code]function doInitGrid(){
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(“imgs/”);
mygrid.setHeader(“User ID, Username, Password”);
mygrid.setInitWidths(",,*");
mygrid.setColAlign(“center,center,center”);
mygrid.setColTypes(“ro,ed,ed”);
mygrid.setSkin(“dhx_skyblue”);
mygrid.setColSorting(“int,str,str”);
mygrid.init();
mygrid.loadXML(“php/get.php”);

myDataProcessor = new dataProcessor("php/update.php");
myDataProcessor.init(mygrid);
myDataProcessor.setTransactionMode("GET", false);

}[/code]

a) dataprocessor init code moved to doInitGrid
b) setTransactionMode command added, to conform the server side processing logic

Thank you Stanislav, it worked! You know this job. :slight_smile:

I’ve just started my project to pass the class. If you may i will have lots of questions to you… :smiley: