나는 그 결과를 에코로만 제한하는 코드를 원한다. "온라인"이라는 결과를 반향시킨다. 결과나는 "에코"라는 결과를 에코로 제한하는 코드를 원한다. "온라인"상태를 되풀이한다.
if(mysqli_num_rows($result) > 0){
//show data for each row
while($row = mysqli_fetch_assoc($result)){
if($row['online'] = "online")
{
echo "ip:".$row['ip'] . "|name:".$row['name']. "|usercount:".$row['usercount'] . ";";
}
}
}
가능한 복제 [3 가지 등호 (https://stackoverflow.com/questions/2063480/the-3-different-equals) – nogad