Sending Connector a value using Query String

Hi,
I’m trying to send a value to the connector using a query string and it does not seem to read the value. Is this not supported?

When I hard code the value in it works.

<?php 

$projid= $_GET['proj'];  //This gives me an error
/* $projid='2'; */           // This works

    require_once("dhtmlxConnector_v10_php/config.php"); 
    $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass); 
    mysql_select_db($mysql_db); 

    require("dhtmlxConnector_v10_php/codebase/grid_connector.php"); 
    $grid = new GridConnector($res); 
    $grid->enable_log("pagelogs/temp.log",true); 
    $grid->dynamic_loading(100); 
   
    $grid->render_sql("SELECT id, actdate, actdata FROM completedactivities WHERE actproj='$projid' ORDER BY actdate DESC",'id',"actdate, actdata"); 
 
?>

THANKS!

how you are placing that value on the client side
The correct code will look like

var dp = new dataProcessor(“some.php?projid=123”)

Client side code will preserve all custom vars which are included in the dataprocessor’s url.