The errors now are for line 24and 14...
#!/usr/local/bin/php
<?
include ("/tti/bp/infra/php/phpFunctions.php");
readStructedFile("/tti/palmTracker/config/palmTracker.const","const");
include("/tti/palmTracker/php/action.class");
$sybase = dbConnect(TRACKER_DATASERVER);
$dbName = TRACKER_DATABASE;
$result = sybase_query("select * from $dbName..TRACKER_ACTIVE_ALARMS",$sybase);
while ($row = sybase_fetch_array($result)){
$currentDate = "'" . date("m/d/y H:i") . "'";
$correlateTag = $row["CORRELATE_TAG"];
$actionResult = sybase_query("select * from $dbName..TRACKER_ACTIONS
where CORRELATE_TAG = '$correlateTag'
and convert(datetime,$currentDate) > dateadd(mi,CYCLE,TIME_STAMP)",$sybase) ;
while ($actionRow = sybase_fetch_array($actionResult))
$a = new action($actionRow["ACTION_NAME"],$row);
}
?>