vivien Posted May 11, 2011 Share Posted May 11, 2011 im taking my ojt. i posted on different linux forums but no one replied i have php code that displays reports. and i want to add html code for UI. but it does'nt appear. i cant install xampp or anything so is there another way to run my code? help pls. Quote Link to comment https://forums.phpfreaks.com/topic/236089-html-code-in-linuxsorry-if-wrong-section/ Share on other sites More sharing options...
gizmola Posted May 11, 2011 Share Posted May 11, 2011 What is ojt? All I got from your post is that you have some code that does something, and you tried to add something and something doesn't work. How about trying to rephrase specifically what your question is, and provide code if what you're hoping for is some help with how to fix code that has errors or doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/236089-html-code-in-linuxsorry-if-wrong-section/#findComment-1213705 Share on other sites More sharing options...
vivien Posted May 11, 2011 Author Share Posted May 11, 2011 ojt means on-the-job training i want to put my results in a table to be more organized.. but it only output data without table. Quote Link to comment https://forums.phpfreaks.com/topic/236089-html-code-in-linuxsorry-if-wrong-section/#findComment-1213707 Share on other sites More sharing options...
gizmola Posted May 11, 2011 Share Posted May 11, 2011 There's lots of different ways to output html from php. You can drop in and out of php, you can make heredocs, or you can just echo out strings. The best way really depends on what you have, but here's a simple example of echoing: $name = 'vivien'; $status = 'ojt'; echo "</pre> <table> Namestatus $name$status </table>";<b This demonstrates how php will interpolate variables into strings you define using the double quotes. Quote Link to comment https://forums.phpfreaks.com/topic/236089-html-code-in-linuxsorry-if-wrong-section/#findComment-1213711 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.