<th>No</th> <th>Nama Tamu</th> <th>Nama Resto</th> <th>Tgl booking</th> <th>Jam</th> <th>Tempat</th> <th>Aksi</th> </tr> </thead> <tbody> <?php include_once "../class/booking.php"; $obj = new booking(); $no = 1; $i = 0; foreach ($obj->viewbooking() as $value) { extract($value); ?> <tr <?php if ($i % 2 == 0) { echo "class='odd gradeX'"; } else { echo "class='even gradeC'"; } ?> > <td class="center"><?php echo $i; ?> </td> <td><?php