时间:2021-07-01 10:21:17 帮助过:13人阅读
echo ""; {$row['username']} {$row['onoff']} {$row['intime']} ";if ($nowtime>=$syntime) echo " {$row['syntime']} ";else echo "{$row['syntime']} ";echo "{$row['device']} ";if ($row['a' ]== "无") echo " {$row['a']} ";else echo "{$row['a']} ";if ($row['b' == "无"]) echo "{$row['a']} ";else echo "{$row['b']} ";echo "{$row['person']} {$row['dtime']}
echo ""; {$row['username']} {$row['onoff']} {$row['intime']} ";if ($nowtime>=$syntime) echo "{$row['syntime']} ";else echo "{$row['syntime']} ";echo "{$row['device']} ";if ($row['a' ]== "无") echo " {$row['a']} ";else echo "{$row['a']} ";if ($row['b'] == "无") echo "{$row['b']} ";else echo "{$row['b']} ";echo "{$row['person']} {$row['dtime']}
不对,错位了。
正确了。感谢。自己多添加了括号,画蛇添足了。感谢感谢!
$syntime_style = $nowtime>=$syntime ? ' styly="color:red"' : '';
$a_style = $row['a'] == '无' ? ' styly="color:red"' : '';
$b_style = $row['b'] == '无' ? ' styly="color:red"' : '';
echo "