I have the following php code and I can not seem to make the if statement work.
=====================
<?php include "header.php"; ?>
<?php include "nav.php"; ?>
<!-- Begin if statements here -->
<?php
if($x=="service"){
include("services.php");
}
elseif($x=="properties"){
include("properties.php");
}
else {
include("main.php");
}
?>
<!-- End of if statements -->
<?php include "footer.php"; ?>
and here are the following .php files that's suppose to load.
================
<table width="750" height="40" border="1" cellpadding="2" cellspacing="0" bordercolor="#CCCC99">
<tr>
<td width="220" valign="top">
<?php include "news.php"; ?>
</td>
<td width="530" valign="top"> tools</td>
</tr>
</table>