Ainokea
New Member
- Messages
- 127
- Reaction score
- 0
- Points
- 0
I was making a php/mysql news based system so I was trying to display the content on the admin page..
Im displaying the table, but I want each row to be like a different background color, so its easier to see...
I tried
Im displaying the table, but I want each row to be like a different background color, so its easier to see...
I tried
Code:
s=1
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
if(s==1)
my code....
s=0;
if(s==0)
my code...
s=1
}
but it didn't work any ideas why?