To by mělo fungovat, syntaxe může být nesprávná, protože jsem to netestoval. Ale logika tam je.
$currentState = 'odd';
$html = '';
while($row = mysql_fetch_array($result)){
$currentState = ($currentState == 'odd' ? 'even' : 'odd');
$html .= '<tr class="'.$currentState.'">';
$html .= '<td><a href="page.php?id=' . $row['ID'] . '">'. $row['Short Name of Fund'] .'</a></td>';
$html .= '<td>' . $row['I/C'] . '</td>';
$html .= '<td>' . $row['Fund Manager Company'] . '</td>';
$html .= '<td>' . $row['Class'] . '</td>';
$html .= '<td>' . $row['Special Class'] . '</td>';
$html .= '<td>' . $row['TTR year-to-date %'] . '</td>';
$html .= '<td>' . $row['Mgmt Fee Effectively Charged'] . '</td>';
$html .= '<td>' . $row['Total Expenses %'] . '</td>';
$html .= '<td>' . $row['Fund Size'] . '</td>';
$html .= '</tr>';
}
echo $html;
UPRAVIT :Aktualizovaný kód, aby to fungovalo.