Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Php coder on Mar 19, 2009 05:07
open dhtmlx forum
Error in grid_connector.php

hi,
i want to try dhtmlxGrid on localhost. but there is an error. i start sample.html and i take an error. i start connector.php , there is a an error "Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/altia/public_html/dhtml/dhtmlxConnector_php/codebase/grid_connector.php on line 6";

connector.php=>
<?php
    require_once("../dhtmlxConnector_php/codebase/grid_connector.php");

    $res=mysql_connect("localhost","altia_iboemlak","iamdemon");
    mysql_select_db("altia_denneme");

    $grid = new GridConnector($res);
    $grid->render_table("grid","item_id","item_nm,item_cd");
?>

my php version 4.4.6

Answer posted by dhxSupport on Mar 19, 2009 07:16
dhtmlxConnector is required php version 5x