<?
session_start();
if($_SESSION['auth']!="yes")
{
header("Location: index.php");
exit();
}
$username = $_SESSION['username'];
include("SQLLogin.inc");
// H E R E I S W H E R E I N E E D T O A D D C O D E
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<? //include("header.inc"); ?>
<form method="post" action="home.php"> <p>
<?
$query = "SELECT * FROM projects ORDER BY 'order' ";
$result = mysql_query($query) or die ("Could not access the database to read directory");
echo "<table cellspacing='0' cellpadding='0' width='100%' border='0'> ";
$count = 1;
?>
<tr bgcolor='#bfc2ff' >
<td>
Building
</td>
<td>
HVAC
</td>
<td>
HVAC
</td>
<td>
Light
</td>
<td>
Envelope
</td>
<td>
Water
</td>
<td>
Special
</td>
<td>
ECM
</td>
<td>
Report
</td>
<td>
Percent
</td>
<td>
Notes
</td>
</tr>
<?
while($row=mysql_fetch_array($result))
{
extract($row);
if($count % 2 == 0)
$color ='#bfe2f9';
else
$color = '#ECF7FD';
?>
<tr bgcolor="<? echo $color; ?>" >
<td>
<? echo $building; ?>
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="hvacA" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="hvacB" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="Light" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="Envelope" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="Water" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="Special" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="ECM" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="Report" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="Percent" />
</td>
<td>
<input type="checkbox" name="<? echo $ID; ?>" value="Notes" />
</td>
</tr>
<?
$count = $count + 1;
}
?>
</table>
<p align="center">
<input type = hidden name = "passedUser" value ="<? echo '$username'; ?>" />
<input type="submit" name="submit" value="Save Changes"/></p>
</font>
<p align="center">
</p>
</p> </form>
</body>
<?
mysql_close($connection);
?>
image.JPG
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE