What does this code means? Odd & Even
- by Rodolfo Contreras
<?php
$Odd = "even";
$query = $MySQLi->query("SELECT id, look, username, motto FROM users WHERE rank = '7'");
if($query->num_rows > 0):
while($UserRow = $query->fetch_assoc())
{
$Odd = ($Odd == "even") ? "odd" : "even";
?>
I'm using a CMS for some web. But i can't stand this code exactly. Well i do know what does it do. But im not sure how to work with it. Mostly this line:
$Odd = ($Odd == "even") ? "odd" : "even";
Can you guys help me?