What does this code means? Odd & Even
Posted
by
Rodolfo Contreras
on Stack Overflow
See other posts from Stack Overflow
or by Rodolfo Contreras
Published on 2013-06-28T04:15:49Z
Indexed on
2013/06/28
4:21 UTC
Read the original article
Hit count: 245
<?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?
© Stack Overflow or respective owner