I have this code below the browser shows correct data but when i export to word I see $proc output not the switch data like on the the browser page
How should code be written to show the same on word doc .
I'm new to this learning by trial and error Please go easy on me .
Thanks
<td> <?
$macro=$row['proc'];
switch ($macro) {
case "00000":
echo "ConsultNC";
break;
case "Cancel":
echo "Cancel NC";
break;
case "92507 x1":
echo "ST Only";
break;
default:
echo $row['proc'];
}?></td>
<?$report_html =$report_html."<td>".$macro."</td> ";?>