Jump to content

html code in linux...sorry if wrong section


vivien

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.