Hey guys,
I'm outputting my results to a csv file, and the first row in the spread sheet is left blank. My results start on the second row.
I'm not sure why this is.. But here's my code . Is there something I have to insert before I begin the while loop ?
Anyhow, thanx to anyone who can help me out..
ck
$num_rows=count($array_player_hits);
header("Content-type: application/csv.ms-excel");
header("Content-disposition: attachment; filename=$file_name");
while($x<$num_rows){
$player_hits=$array_player_hits[$x];
print "\"$player_hits->mac_address\",\"$player_hits->player_name\",\"$player_hits->file_name\",\"$player_hits->num_hits\",\"$player_hits->time_period\",\"$player_hits->date\"\r\n";
$x++;
}
exit();