Jump to content

What's wrong with this code?


guttyguppy

Recommended Posts

Yeah, the $ is obvious-thanks for noting that, I fixed it-- but "hello world" still doesn't appear on the page.

I don't get any errors, which is also a problem. I wish I did, but I can't find the right php code to paste at the top of my page so that I get error reporting (php.net is way confusing)

Indent moar.

 

<?php

function saywords() {

    return "hello world";

}

 

$theword = saywords();

?>

 

<html>

        <head>

        </head>

    <body>

 

        <?php

            echo($theword);

        ?>

 

    </body>

</html>

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.