Menu
I have this function:
[LIST][*]
getbgc()
I’m trying to call it using an echo statement, but I can’t seem to get it right. Here’s what I have:
[code=php]echo “<tr style=”.getbgc($i).”>
<td style=’width:auto’>”.$row[0].”</td>
<td style=’width:auto’>”.$row[1].”</td>
… etc
To me, that looks right. But it isn’t being called. The function only serves to alternate two colors on the table rows, but they stay white throughout. Can anyone tell me what I’m doing wrong here?