Howdy,
i’m trying to get my DHTMLXGRID to retrieve and send data to my SQL Database using the DhtmlxDataProcessor and the DhtmlxConnector, but eventhough Ive followed the setup guides as closely as I could, i’m simply getting a “Page not found” error when performing an action on my Grid, and nothing is showing up on my Database.
This is a screenshot of the error I get when trying to perform an action ( in this case, adding a Row) :
http://www.kleynan.com/sites/memomed/dataprocessor.png
Am i missing some files? I’ve uploaded the codebases of the Grid, Dataprocessor and Connector packages and this is my index.php file where the grid and processor are initiated:
[code]
//we'll write script commands here var myGrid;function doInitGrid(){
myGrid = new dhtmlXGridObject('mygrid_container');
myGrid.setImagePath("codebase/imgs/");
myGrid.setHeader("Begreb,Association,Position,Undergruppe");
myGrid.setInitWidths("*,*,*,*");
myGrid.setColAlign("left,left,left,left");
myGrid.setSkin("dhx_skyblue");
myGrid.enableDragAndDrop(true);
myGrid.setColTypes("ed,ed,ed,ed");
myGrid.init();
myGrid.loadXML("connector.php");
myDP = new dataProcessor("connector.php");
myDP.init(myGrid);
}
function addRow(){
var newId = (new Date()).valueOf()
myGrid.addRow(newId,"",myGrid.getRowsNum())
myGrid.selectRow(myGrid.getRowIndex(newId),false,false,true);
}
function removeRow(){
var selId = myGrid.getSelectedId()
myGrid.deleteRow(selId);
}
</script>
And my connector.php (with DB info blocked out )
[code]<?php
require_once(“codebase/grid_connector.php”);
$res=mysql_connect("xxxxxx","xxxxxxx","xxxxxxxx");
mysql_select_db("memomed");
$grid = new GridConnector($res);
$grid->render_table("grid50","item_id","item_nm,item_cd");
?>[/code]
What am I doing wrong? Please help!
Kleynan