wantabe2
asked on
PHP Code Help Needed
I need to create some tables like the code you see below...come somoeone provide the code for me to do this? Thanks
formmm.JPG
formmm.JPG
can you please post the code
ASKER
If I had the code for the photo I would not be posting a request for it????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Close enough ?
<html>
<head>
<style type="text/css">
td{padding: 5px; text-align: center;}
.in{background-color: #00FF02; width: 70px;}
.odd{background-color: #eeeeee;}
.even{background-color: #DDDDDD;}
</style>
</head>
<body>
<table>
<?php
for($i=0;$i<7;$i++){
if($i%2 == 0) $bgc = "odd"; else $bgc = "even";
echo"<tr><td class=\"in\">In</td><td class=\"".$bgc."\">02/25/2011</td><td class=\"".$bgc."\"></td></tr>";
}
?>
</table>
</body>
</html>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.