Jump to content

Need help to Word doc


kavsher

Recommended Posts

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> ";?>
 
Link to comment
https://forums.phpfreaks.com/topic/290727-need-help-to-word-doc/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.