This is very simple actually.... <?
$result = mysql_query($sql);
$flag = 0;
while($row = mysql_fetch_array($result)){
$field1 = $row['field1'];
$field2 = $row['field2'[;
if($flag){
?>
<tr style="background: blue;">
<td><?=$field1?></td>
</tr>
<?
$flag = 1;
}
else{
?>
<tr>
<td><?=$field1?></td>
</tr>
<?
$flag = 0;
}
}
?>
That was very quick, but I hope it helps.
-Josh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

