$bwords = aray("admin", "mod"); $pmsg = if($list['StringyChat_message'] = $bwords) {echo ":-x";} else { echo "$list['StringyChat_message']";}
$pmsg = if($list['StringyChat_message'] = $bwords) {echo ":-x";} else { echo "$list['StringyChat_message']";}
$pmsg = ($list['StringyChat_message'] == $bwords) ? ":-x" : $list['StringyChat_message'];
$bwords = aray('ass', 'elo' );$pmsg = ($list['StringyChat_message'] == $bwords) ? ":-x" : $list['StringyChat_message'];// while there are rows to be fetched...while ($list = mysql_fetch_assoc($result)) { // echo data echo '<span style="color:#828282">' . '(' . date( 'D H:i:s', $list['StringyChat_time'] ) . ') ' . '</span>' . '' . $list['StringyChat_name'] . '' . ' : ' . $pmsg . '<br />';} // end while
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)