Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

unexpected T_ECHO on line 27

$
0
0
Can someone please help me figure out this code. I don't know what I am doing wrong. I am getting an error.
<HTML>
<HEAD>
<TITLE>Module 3</TITLE>
</HEAD>
<body>

<?php

	//(#2) Page 67
$DateTime = date("D-M-Y")
//Output the Date & Time
echo "$DateTime";
//Current Time
echo date ("h:i:s");

//Constant that contains the assignment title (#3)
define ("AssignTitle" , "My First PHP Page");
echo Constant ("AssignTitle");

	//(#6) Page 72
echo "<br>I am using ".PHP_VERSION;
echo "<br>This server is being run on ".PHP_OS;

	//#7
$stringVar = "Chicken fingers subs at the Willy C are the best! said Clyde."
echo "<p>string:$stringVar</p>";

	//#8
$a = 8;
$b = 9;
$c = $a + $b;
echo "<p> Addded \$a and \$b and got $c</p>";

$d = 24;
$e = 8;
$f = $d % $e;
echo "<p> The modulus of \$d and \$e is $f</p>";

$g = 5;
$h = 3;
$i = $g / $h;
echo "<p> Divided \$g and \$h and got $i</p>";

?>
</body>
</html>


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>