Danny - I had tried that , and I have just tried it again, just to make sure. All I had passed to the function was an integer. This is the code segment causing the problems
$query = "SELECT * FROM std_reports where report_group='$report'";
$result = mysql_query ( $query );
$report_array = mysql_fetch_array ( $result );
foreach($report_array as $a_row)
{
// create the report url
$report_url = create_report_url ( "inbound", $a_row[type], $period, $a_row[tryall], $a_row[varlist], $a_row[varlist_label], $a_row[graph_type], $a_row[name_list], $a_row[y_label], $a_row[interval15], $a_row[group], $a_row[colordef] );
}
Thanks