<?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";
?>
我正在为某些网络使用 CMS。但我并不完全理解这段代码,尤其是这一行:
$Odd = ($Odd == "even") ? "odd" : "even";
你们能帮帮我吗?