I have wasted several hours just to make a textbook example of defining the php variables and trying to echo the values using my both XAMPP Sever and the actual hosting company. My goal is to display the results of a sql query into a html table. Unfortunately, I cannot even echo the 4 basic php variables with actual values?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Test HTML Table With mysql variables</title>
</head>
<body>
<?php
$email1 = "av104";
$email2 = "av1040";
$address1 = "Thousand Oaks";
$address2 = "Los Angeles";
echo $email1."<br/>";
echo $email2."<br/>";
echo $address1."<br/>";
echo $address2.."<br/>";
<?
<table>
<tr>
<td>$email1</td>
<td>$address1</td></tr>
<tr>
<td>$email2</td>
<td>$address2</td>
<tr>
</table>
*/
</body>
</html>
When I execute this script using either XAMPP or my hosting company's server, I get this output:
"; echo $email2."
"; echo $address1."
"; echo $address2.."
"; $email1 $address1 $email2 $address2
I will greatly appreciate if someone can guide me what is wrong with this html/php script? I will be much obliged. Thanks!