kavsher Posted August 29, 2014 Share Posted August 29, 2014 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> ";?> Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted August 29, 2014 Share Posted August 29, 2014 when i export to word I see $proc output What do you mean by that? Can you explain what it is you are trying to do Also when you post code please wrap it within tags next time Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.