dhtmlx grid and mySQL connection & XML load error with incor

I have struggled with this for a while and seem to have a problem I cannot solve. I tried using the documentation for setting up mySQL with the gridbox. I also tried the dhtmlxcommon_debug javascript which did not seem to help much. My code that I tried is below with some original sections commented out. Thanks,

******************<—PHONE.HTML CODE BELOW, means of entry–>


        Radiologist phone list














Add row


Remove Selected Row


<-get.php below*>    


//include db connection settings

//change this setting according to your environment






//include XML Header (as response will be in xml format)

//header(“Content-type: text/xml”);

//encoding may be different in your case

//echo(’<?xml version="1.0" encoding="iso-8859-1"?>’);

//output data from DB as XML

//$sql = “SELECT * from samples_grid”;

//$res = mysql_query ($sql);


$gridConn = new GridConnector($res,“MySQL”);

$gridConn->render_table(“attendings”,“phone”,“residents”,“phone2”,“reading rooms”,“phone3”,“pager numbers”,“phone4”);




        //create xml tag for grid’s row

        echo ("<row id=’".$row[‘book_id’]."’>");













//error occurs

    echo mysql_errno().": “.mysql_error().” at “.LINE.” line in “.FILE.” file


echo ‘’;



To use connectors you should attach connector.js file to your page. Also you can switch logging on the server side to check what error occurs while loading data in grid: