Hello,
I am doing something just terribly basic and feel like a dolt.
No matter which way I try it, everytime I try to issue the command: echo "something" or echo '$variable', I get a blank page.
I have checked phpinfo() and the display_error is On. I tried something like: echo ("something") and echo $variable...still nothing but a blank page.
What am I doing wrong?! 😕
Attached is an example of the exact code I am trying to use.
Thank you for ANY suggestions you may have.
--Q
<! DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN"
"http://www.w3c.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Numbers<title/>
</head>
<body>
<?php # Script 1.9 - numbers.php
// Create the variables.
$quantity = 30; // Buying 30
$price = 119.95; // $119.95
$taxrate = .05; // 5%
// Calculate the total.
$total = $quantity * $price;
$total = $total + ($total * $taxrate);
$total = number_format($total, 2); // Format the results.
//Print the results.
echo 'You are purchasing <b>' . $quantity. '</b> widget(s) at a cost of <b>\$' . $price . '</b> each. With tax, the total comes to <b>\$' . $total . '</b>';
?>
</body>
</html>
Ok, I have modified this code and removed the supercilious ')' from it. It still does not work.