I am new to php.I want to know is there a way to controlling the auto-increment process.
I am making a guest book project.I want comments to store in mysql database table and appear on alternate background,like--dark,white,dark.my 'id' field is primary and auto-increment.and making alternate background by--
Code: Select all
if($var1%2)
{
div class="grey";
.....
....
}
else
{
div class="white"
.....
.....
}
please help
thanks in advance