Jump to content

html code in linux...sorry if wrong section


vivien

Recommended Posts

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.

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.

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.